Crypto Dictionary
The dictionary open at the entry for smart contract, in daylightThe same page at night under the desk lamp

Dictionary · S

Smart contract

also: on-chain program, self-executing contract

A smart contract is a program stored on a blockchain that runs exactly as written when someone sends it a transaction, holding and moving tokens without a middleman.

Rules checked against GOV.UK, the FCA and legislation.gov.uk on 17 November 2026. How entries are checked

What does the code do that a company would normally do?

Think of a vending machine rather than a solicitor. Put in the right input and the code pays out, every time, with no one to persuade or complain to. Swapping on a decentralised exchange, lending, minting an NFT: each one is a smart contract doing what a company would otherwise do.

'Runs exactly as written' cuts both ways. If the code has a bug, the bug runs exactly as written too, and many contracts are upgradeable by whoever holds an admin key, which means a team can change the rules after you've deposited. When a site asks you to 'approve' a token, you're signing a permission for a contract to move your tokens, often with no limit and no expiry.

We found no UK statute that defines a smart contract. Whether one forms a legally binding agreement in England and Wales or Scotland is a question for ordinary contract law and the facts, so take legal advice if anything significant turns on it.

An example in pounds

Nadia approves a 'free mint' website to spend her tokens, thinking she's only signing in. The contract she approved can now move those tokens whenever it likes, and that evening it takes £600 worth. Nobody hacked her phone: she signed the permission herself, and the contract did exactly what it was written to do.

Not the same as DeFi: DeFi is the wider set of financial services people build without a bank in the middle; smart contracts are the building blocks they're made from.

Smart contracts, DeFi and oracles: how they fit together
Smart contractDeFiOracle
What it isA program stored on a blockchainFinancial services built without a bankA feed of outside data
ExamplesA swap, a loan, an NFT mintLending, borrowing, swapping, earningExchange rates, match results
RoleThe building block that actsThe wider set of appsTells contracts what happens off-chain

This page explains smart contracts in general; if money or a legal dispute turns on one, get advice on your own facts.

What should you check before signing an 'approve' request?

  • Read every signature request. 'Approve' or 'set approval for all' hands spending rights over your tokens to a contract.
  • Revoke old token approvals from your wallet's settings when you're done with a site.
  • 'Audited' is not a guarantee: audits miss bugs, and fake audit badges are easy to make.

Questions people type about smart contract

are smart contracts legally binding in the uk

There is no specific UK statute on them that we found. Whether one is binding depends on ordinary contract law and the circumstances.

can a smart contract be changed

Some can't be changed once deployed. Many are upgradeable by an admin key, which means the team can alter how they work later.