Exchanges

Glossary / Crypto

Smart contract

A program stored on a blockchain that runs exactly as written when a transaction calls it, and can hold and move crypto by its own rules.

A smart contract is code deployed to a blockchain at an address of its own. Anyone can send it a transaction, and every node runs the code and records the result, so the outcome does not depend on trusting any single party. Ethereum made smart contracts widely used; many other blockchains now support them.

Tokens, decentralised exchanges, lending protocols and non-fungible tokens are all smart contracts. Each operation they perform costs a fee in the blockchain’s own coin, which on Ethereum is called gas.

Despite the name, a smart contract is not a legal contract, and it is only as good as its code. Once deployed it usually cannot be changed, unless it was written to allow upgrades, so a bug can be exploited by anyone who finds it, and funds taken that way are rarely recovered.

Also called: smart contracts, self-executing contract, dapp, decentralised application

See it on this site

Related terms