Smart contracts
Code that runs itself, with no middleman.
A smart contract is a program stored on the blockchain that runs automatically when its conditions are met.
They enable decentralised apps (dApps): exchanges, lending, insurance - without a trusted intermediary.
- Automatic execution
- No middleman
- Foundation of dApps
Escrow without a notary
A buyer and a seller agree: 10,000 USDC are locked in a contract and released on delivery, confirmed by the buyer or an arbiter.
- 01If delivery is confirmed10,000 USDC to the seller
- 02If disputedThe arbiter decides
- 03If nothing after 30 daysAutomatic refund
The contract does exactly what is written, bugs included. A pro checks the audit, whether the code is upgradeable and who holds the admin keys.
Questions and answers
Who writes smart contracts?
Developers, in Solidity on Ethereum or Rust on Solana. Code is usually published and audited before launch.
How can I check a contract before using it?
Check whether it is verified on a block explorer, whether it was audited, how long it has run and who holds the admin keys.
Test your understanding with a quick interactive quiz.