A smart contract is neither smart nor a contract. It is a small program stored on a blockchain that automatically executes when its conditions are met, with no person or intermediary involved. This single invention powers almost everything interesting in crypto beyond simple payments: DeFi, NFTs, tokens, and decentralized applications all run on smart contracts.
What the name really means
Computer scientist Nick Szabo coined the term in the 1990s, explicitly stating that “smart” does not mean intelligent — it just means automatic. And “contract” is a loose term for a set of encoded promises, not a legal document waiting for a court. The idea was theoretical until Ethereum launched in 2015, providing a blockchain designed from the ground up to run arbitrary programs. Szabo’s concept finally had a platform with no single controller.
The vending machine analogy
Szabo himself used this analogy: you insert coins, press a button, and the machine dispenses your item — no cashier, no trust required. A smart contract is the digital version: rules encoded as code, execution automatic when conditions are met, results irreversible. But a smart contract can move thousands of dollars, runs on a network of thousands of nodes, and once deployed its code cannot be changed.
How it actually works
Code is written in a specialized language and deployed to a blockchain at a unique address. Users send a transaction to that address with inputs; all network nodes run the same code and reach the same result (consensus). Execution costs gas fees to compensate for computational resources. Results are permanently recorded and verifiable. The most consequential feature: code is immutable after deployment. When correct, this is a strength; when flawed, it is a catastrophe.
What it is used for
DeFi is the fullest expression. Uniswap uses smart contracts to manage liquidity pools and settle trades; Aave automates lending and liquidations; stablecoins manage issuance and peg maintenance. NFTs are governed by contracts that track ownership and handle transfers. DAOs use contracts to manage treasuries and execute vote outcomes. Wherever crypto replaces a trusted intermediary, a smart contract is doing the work.
The double-edged sword
Advantages: automation, transparency, trustlessness, immutability. Risks: bugs or faulty external data can cause irreversible loss of funds. History is full of exploits where contracts with vulnerabilities were drained of millions. “Code is law” cuts both ways: the machine does exactly what it was built to do, whether or not that is what its creators intended.

