Introduction
Apps work together more easily when they agree on how to ask for the
same things.
What you’ll learn
Choose an interface or design pattern for a specific application
need.
Lesson
A standard specifies an interface and expected
behavior. A design pattern describes a reusable way to
solve an implementation problem. A wallet can understand common token
operations because it integrates a standard. A team can limit who
changes settings because it applies an access-control pattern.
| ERC-20 |
Interchangeable units and allowances |
A rewards balance where every unit follows the same rules |
| ERC-721 |
Individually identified tokens |
Numbered workshop passes with separate ownership |
| ERC-1155 |
Multiple token types in one contract, including types with multiple
interchangeable units |
General admission and numbered passes managed in one program |
An allowance under ERC-20 authorizes a spender to
act within a specified amount under the token’s rules. ERC-721 metadata
support is optional, and owning a token gives the rights defined by the
surrounding agreement and system. Interface compatibility still depends
on how an application and its wallet integrate the standard. See ERC-20, ERC-721, and ERC-1155.
Patterns in practice. Single ownership gives an
administrator selected powers. Role-based access can give separate
powers to the team members who need them. A pause control stops
specified actions during a response window. A pull workflow records what
each recipient can claim and lets them claim individually, isolating
failures across recipients. A factory creates standardized contract
instances, which makes configuration and version review particularly
important. These are design choices. The right implementation depends on
the platform and its authorization model.
Practice quiz
Select one answer per question.
Answer key and explanations
- A. ERC-1155.
- C. Staff can respond to a problem without gaining
unrelated powers.
- B. Other eligible recipients can still claim
independently.
Sign in with Discord to take this quiz and earn your badge.