Skip to content
BTC$64,166 +0.70% ETH$1,873 +0.30% MCAP $2.28T +0.66%

What is a smart contract?

A program stored on a blockchain that runs exactly as written when its conditions are met, without anyone able to intervene.

Smart contracts allow agreements to be enforced by code rather than by an institution — lending, exchange, escrow and token issuance are all implemented this way. Once deployed, most cannot be altered.

Why it matters: immutability is the feature and the danger. A bug cannot be patched away, and there is no support desk to reverse a loss, which is why exploits routinely drain very large sums in minutes. “The code is the agreement” also means the code is the risk: an audit reduces that risk but does not remove it. See DeFi.

Related terms

  • BlockchainA shared, append-only ledger of transactions that many independent computers hold copies of and…
  • LiquidationThe forced closure of a leveraged position by an exchange or protocol when the…
  • Hash rateThe total computing power miners are pointing at a proof-of-work network, usually quoted in…
  • Bitcoin dominanceBitcoin's share of the total market capitalisation of all crypto assets, expressed as a…
  • HalvingThe scheduled event where the reward paid to Bitcoin miners for producing a block…
  • SlippageThe difference between the price you expected to trade at and the price you…

Crypto assets are volatile and high-risk. Prices shown are indicative and may be delayed. Always do your own research. Coinpric does not provide financial advice.