Code that keeps its promises
What is a smart contract?
A program that holds value and follows its own rules, running in the open on a blockchain. This is the plain language tour of the software behind DeFi, NFTs, and DAOs.
Reviewed and current as of September 12, 2026
01A vending machine for agreements
Picture a vending machine. You drop in a coin, the machine checks the amount, and out comes your snack. The machine runs the same deal every time, exactly as advertised. Nobody needs to argue with it.
A smart contract works like that machine, built from code instead of steel. It is a program on a blockchain that holds something of value and hands it out only when agreed conditions are met. The rules sit in the open where anyone can read them, and once the contract is live, it runs on its own.
02What smart contracts really are
Smart contracts are software that lives on a blockchain. A contract keeps a balance, follows instructions, and responds to messages the same way every time. When you send a transaction to a contract, thousands of computers across the network run the same code and reach the same result.
The idea goes back to the nineties. Nick Szabo described digital agreements that carry out their own terms, imagining contracts a machine could read and enforce. Ethereum made the vision practical in 2015 by giving blockchains a shared computer where anyone could publish code and everyone could trust the outcome.
03Where they live
Ethereum is the original home. Its shared computer gives every contract a place to run, with gas fees paying for the work. Most contract activity still happens there, joined by faster Layer 2 networks that settle their results back to Ethereum.
Many other networks run their own houses. Solana, BNB Chain, Tron, Cardano, Avalanche, and Polkadot each host contracts with their own designs. The core idea stays the same across all of them: publish the rules, let the network run them, let anyone check the work.
04What they power
Tokens. A token contract keeps the ledger of who owns what. Stablecoins, exchange tokens, and memecoins are all programs following the rules their authors wrote.
DeFi. Lending pools, decentralized exchanges, and yield vaults are contracts holding deposits and paying out by formula. Our DeFi habits guide walks through how to explore them with confidence.
NFTs. A token contract mints each digital collectible, tracks its owner, and can send the creator a royalty on every resale. The NFT guide covers the culture around them.
DAOs. Community treasuries run by contract code, where members vote and the software carries out the results. The DAO guide explains them in plain words.
05Strengths and honest limits
The strengths are real. Contracts run exactly as written, around the clock, in the open. They settle directly between parties, keeping middlemen out of the deal. They compose like building blocks: developers plug existing contracts together into new creations overnight.
The limits deserve honest mention. A contract does exactly what its code says, which rewards careful design and careful review. Bugs can be expensive, because blockchain actions are final. Contracts also see only what happens on chain. Facts from the real world arrive through oracles, services that feed outside data in. And every action costs gas on the host network.
06Why it matters for you
Smart contracts are the reason blockchains do more than move coins. They turn Ethereum into a platform where anyone can build financial services, games, and marketplaces that run in the open. When you swap a token, borrow against your holdings, or pick up an NFT, a contract does the quiet work underneath.
Understanding them changes how you read crypto news. Every DeFi headline is really a story about a contract that behaved exactly as written. Every new app launch is a contract inviting the world to use it. The Ethereum guide is your next stop: with contracts understood, the whole app layer starts to click.
01Who came up with smart contracts?
Nick Szabo, a computer scientist and legal scholar, described the concept in the nineteen nineties: digital agreements that a machine could read and carry out on its own. Ethereum brought the idea to life at scale in 2015, when Vitalik Buterin and the founding team shipped the first general purpose smart contract platform.
02Can a smart contract be changed after it goes live?
The classic contract is permanent: once deployed, the code stays exactly as written, which is why respected audits and public code matter so much. Upgradeable designs exist too, where the contract points to fresh logic behind the scenes. Good projects disclose which approach they use and keep the upgrade keys in trusted hands.
03Are smart contracts legally binding?
Code carries out the deal on its own, while legal standing depends on where you live and what the parties agreed in words. Treat the contract as a very reliable helper that always keeps its word, and keep the legal side documented for the world it lives in.
04What is gas, and why do contracts need it?
Gas is the fee that pays the network's computers to run your transaction. Busy hours cost more, quiet hours cost less. Layer 2 networks carry the same contracts with lighter fees, and fee estimators help you pick a good moment.
05How can I tell a contract is safe to use?
Look for published code, a respected audit, a public team, and a track record of steady use over time. The DeFi habits guide walks through the full checklist, and our security basics guide keeps your wallet side tidy too.