Skip to content
Both Eyes Wednesday, July 8, 2026
BTC $61,880.51 -3.31% ETH $1,730.58 -3.95% Mkt Cap $2.14T -3.02%
Glossary

Smart Contract

Plain-language definition Crypto glossary
Key takeaways
  • A smart contract is a program stored on a blockchain that executes automatically when its predefined conditions are met, with the outcome enforced by the network rather than a bank, broker or court.
  • Once deployed to a platform such as Ethereum, anyone can call its functions, and every node runs the same code to reach the same result so it cannot be quietly changed.
  • Smart contracts are the building blocks of DeFi, NFTs and DAOs, but their public code means bugs are exploitable and a flaw can be drained before it is fixed.
Definition

A smart contract is a program stored on a blockchain that executes automatically when its predefined conditions are met. Because the code and its results live on the chain, the outcome is enforced by the network rather than by a bank, broker or court.

How it works

A developer writes the contract’s logic — for example, “release these funds when both parties have deposited” — and deploys it to a smart-contract platform such as Ethereum. Once deployed, anyone can call its functions. Every node runs the same code and must reach the same result, so the contract behaves identically for everyone and cannot be quietly changed.

Why it matters

Smart contracts are the building blocks of decentralized finance, NFTs and DAOs. They remove the need to trust a middleman, but they also mean that bugs are public and exploitable: a flaw in the code can be drained by anyone before it is fixed, which is why audits matter.

Example

A decentralized exchange is a set of smart contracts that swap one token for another and pay liquidity providers automatically, with no company holding the funds.

FAQ
Frequently asked questions
What makes a smart contract "smart"?
It automatically executes its coded logic when predefined conditions are met, without needing a bank, broker, or court to enforce the outcome. Because the code and its results live on the chain, the network itself guarantees the contract behaves the same for everyone.
Can a smart contract be changed after it is deployed?
Once deployed, the contract runs identically on every node and cannot be quietly altered, which is part of what makes it trustworthy. This immutability is a strength, but it also means a coding flaw cannot be easily patched after the fact.
Are smart contracts risky?
They remove the need to trust a middleman, but their code is public and exploitable, so a bug can be drained by anyone before it is fixed. This is why auditing and careful development are important, and why users should understand a contract's risks. This is educational information, not financial advice.
Related terms

Other glossary terms connected to this one.

Keep learning

Go deeper than the definition — explainers, live data and free calculators.