Basics

Smart contract

A smart contract is a program stored on a blockchain that runs automatically when its conditions are met, without a middleman.

In detail

Once deployed, the code is visible on the blockchain and carries out exactly what is written in it. Smart contracts hold and move funds for decentralised exchanges, lending services, NFTs and tokens. Using one requires a transaction and a network fee. Many contracts cannot be changed after launch, which gives predictability but also means that mistakes in the code may stay there.

Practical example

A lending contract can be written so that when a borrower repays, the locked collateral is released automatically, with no bank officer approving the step.

Risk note

Bugs or deliberately hidden functions in a contract have led to large losses. Approving a contract in your wallet can give it permission to move your tokens, so read what you are signing.

See it in ICEC

Related terms

For education only. Nothing here is investment, legal or tax advice. 72 terms · All terms