Smart Contract
Quick Definition
Self-executing code stored on a blockchain that automatically enforces the terms of an agreement when predefined conditions are met, without intermediaries.
What Is Smart Contract?
A smart contract is a self-executing program stored on a blockchain that automatically enforces and executes the terms of an agreement when predefined conditions are met. First conceptualized by computer scientist Nick Szabo in 1994, smart contracts became practical with the launch of Ethereum in 2015, which was specifically designed to support programmable contracts. Smart contracts eliminate the need for trusted intermediaries by replacing them with transparent, deterministic code.
Smart contracts operate on an "if-then" logic: if certain conditions are verified by the blockchain, then specific actions are automatically executed. Once deployed, a smart contract's code is immutable (cannot be changed), and its execution is transparent and verifiable by anyone on the network. This creates trustless systems where parties can transact without knowing or trusting each other, relying instead on the guarantee of code execution.
The applications of smart contracts extend far beyond simple transactions. They power the entire DeFi ecosystem (automated lending, trading, and insurance), govern DAOs (voting and treasury management), manage NFTs (creation, royalties, and transfers), and enable complex financial instruments (derivatives, options, and structured products). However, smart contracts also carry risks — code vulnerabilities can be exploited by hackers, and the immutability of deployed contracts means bugs cannot be easily patched. Smart contract audits by security firms have become standard practice before protocol launches, and formal verification methods are increasingly used to mathematically prove contract correctness.
Smart Contract Example
- 1On Aave, a smart contract automatically liquidates a borrower's collateral if it falls below the required ratio — no human intervention needed. When ETH drops 30% suddenly, thousands of under-collateralized positions are liquidated within minutes by bots interacting with the protocol's smart contracts.
- 2An artist mints an NFT with a smart contract that includes a 5% royalty on all secondary sales. When the NFT resells for $10,000 on a marketplace, the smart contract automatically sends $500 to the original creator — enforcing royalty payments that would be unenforceable in traditional art markets.
Related Terms
Ethereum
A decentralized blockchain platform that enables smart contracts and decentralized applications (dApps), powered by its native cryptocurrency Ether (ETH).
DeFi (Decentralized Finance)
A financial ecosystem built on blockchain technology that provides traditional financial services like lending, borrowing, and trading without centralized intermediaries.
DApp (Decentralized Application)
An application built on a blockchain network that operates through smart contracts rather than centralized servers, offering censorship resistance and user sovereignty.
DAO (Decentralized Autonomous Organization)
An organization governed by smart contracts and token-based voting, where decisions are made collectively by members without traditional hierarchical management.
ERC-20
A technical standard on the Ethereum blockchain that defines a common set of rules for creating fungible tokens, enabling interoperability across wallets, exchanges, and DeFi protocols.
Blockchain
A distributed, immutable digital ledger that records transactions across a network of computers, ensuring transparency, security, and decentralization.
Expand Your Financial Vocabulary
Explore 130+ financial terms with definitions, examples, and formulas
Browse Crypto & Digital Assets Terms