⛓️Smart Contract
Also known as Blockchain Smart Contract, Contract Account
A program kept on a blockchain. It runs its own rules, the same for all.
Think of it like
It is like a snack machine. Put in coins, press a button, and the snack drops out.
Example
A smart contract holds the prize money for a chess game. When the game ends, it pays the winner with no referee.
Why it matters
Strangers can make a deal and trust the code instead of each other. Tokens, NFTs and dApps are all built from contracts.
Definition
Common mistake
Key takeaways
- 1Code is the rule. It does exactly what it says.
- 2Runs on request. A transaction starts each run.
- 3Hard to change. Published code usually stays.