What are smart contracts?

Smart contracts are like rules written on paper that help people do things automatically without needing someone to watch over them.

Imagine you and your friend want to trade toys at recess. You both agree: if you give your friend a red car, then they’ll give you a blue truck. That’s a smart contract, it’s like the rule that makes sure everyone follows through on their promise.

How It Works

Think of a special kind of piggy bank. You and your friend each put a toy inside. When the bell rings (which means the trade happens), the piggy bank opens, and both of you get what you wanted, no need for anyone to check if you kept your promise.

Why It’s Useful

Smart contracts are used all over the place, even by grown-ups. For example, when you rent a video game online, the smart contract might say: if you pay $5, then you get to play the game right away, and that happens automatically!

So smart contracts help people do fair trades without needing someone else to keep things running. It's like having a rule that works by itself, just like your toy trade!

Take the quiz →

Examples

  1. A smart contract is like a vending machine, you pay, and it gives you what you want automatically.
  2. Imagine a lease agreement that automatically deducts rent from your account every month without needing a landlord.
  3. A smart contract on a blockchain could let you buy a ticket to an event, and the door automatically opens for you.

Ask a question

See also

Discussion

Recent activity

Categories: History · blockchain· automation· coding