What is Smart Contract?
A smart contract is a program stored on a blockchain that runs automatically when its conditions are met, holding and moving assets according to code rather than through a human intermediary.
Also known as: smart contracts · on-chain contract · contract code
In plain terms
A smart contract is software that lives on a blockchain. Because the network executes it the same way for everyone, two parties can rely on it without trusting each other or a middleman.
Common uses include token issuance, escrow-style payments, lending pools and vesting schedules that release tokens on a fixed calendar.
How it works
A developer writes the contract's code and deploys it to a blockchain, where it gets its own address. From then on anyone can interact with it by sending transactions to that address.
When a transaction calls one of its functions, every validator executes the same code and reaches the same result, so the contract's state — balances, ownership, schedules — stays consistent across the network.
Contracts hold funds and tokens themselves, which means a bug can be costly and hard to fix. That is why professional deployments go through audits, testing and often upgrade mechanisms or timelocks.
Example
Hypothetical: a vesting contract holds 10,000,000 tokens for an early investor with monthly linear release. Each month the investor calls the contract's claim function, and it transfers exactly the vested amount — no invoice, no approval emails, no counterparty risk.
Why it matters for founders and investors
Smart contracts are the execution layer of Web3: token standards, permissioned transfers, DeFi protocols and tokenized assets all run on them. Investors should understand that the code, not the whitepaper, is what actually controls the asset.
For founders, contract quality is a product risk: an unaudited contract holding real value is one of the most common causes of losses in the industry.
Common misconceptions
Smart contracts are not always fully autonomous and immutable in practice — many include admin keys, upgrade paths or pause functions, which is why who controls those keys matters as much as the code itself.
They are not legal contracts. A smart contract enforces what the code says; the legal relationship between parties is a separate matter that usually still needs documentation off-chain.
Frequently asked questions
What happens if a smart contract has a bug?
Users can lose the assets the contract controls, and fixes are only possible if the code includes an upgrade or recovery mechanism. This is why audits, testing and careful key management are standard practice for contracts that hold significant value.
Do smart contracts replace lawyers?
The code enforces itself, but the surrounding legal arrangement — who owns what, which jurisdiction applies, what happens in a dispute — still requires legal documents. Serious projects pair smart contracts with legal agreements.