Glossary
Stocks, funds & commodities

What is Smart contract?

A program on a blockchain that runs by itself when its conditions are met. Its code is usually public, so anyone can read it, including attackers looking for a fault.

Learn it in 60 secondsFrom your pathLesson 4.6.4 · Decentralised Finance (DeFi)

Think of it like

A vending machine. Put in the right coins, press a button, and it hands you a drink. No shop assistant is needed.

Real example

A lending smart contract allows a loan of at most 80% of a deposit. Lock US$1,500 of ether, and it lends at most 1,500 × 0.80 = US$1,200, with no one to ask.

Key takeaway

  • DeFi puts code in place of a company you'd trust.
  • Code can't steal your coins, but one fault lets others take them, with no undo.

Lesson 4.6.4 · Decentralised Finance (DeFi): An Introduction

Frequently asked questions

What does smart contract mean?

A program on a blockchain that runs by itself when its conditions are met. Its code is usually public, so anyone can read it, including attackers looking for a fault.

What is an example of smart contract?

A lending smart contract allows a loan of at most 80% of a deposit. Lock US$1,500 of ether, and it lends at most 1,500 × 0.80 = US$1,200, with no one to ask.

Related words

All 477 words in the glossary