All lessons
Lesson 9 of 11

Smart contracts and approvals

Follow a simple contract rule and learn how to read a token approval request.

A smart contract runs code

A smart contract is a program stored on a blockchain. In a practice game, a ticket contract could check whether a player has one spare ticket, then use that ticket to unlock a round. The network follows the rules written into the program.

An approval grants an allowance

Some Ethereum tokens let you authorize another address, such as an app’s smart contract, to move tokens from your account up to a limit. That permission is called an allowance. A single approval can remain in effect after you close the app.

Review the request

An app that needs one Meadow Ticket may show a request for one ticket or for unlimited tickets. Check the app, the token, and the amount. If a request asks for more than you expect or you cannot identify who would get access, pause and decline it.

Check your understanding

A practice app needs one Meadow Ticket and requests unlimited access to your tickets. What should you do?
Play Approval LabChoose how much a fictional app can spend and when to refuse a request.