ERC-20: the minimal interface for fungible tokens
The intersection: the minimal shared interface for fungible tokens — every unit is equivalent and divisible, suiting pricing, voting, staking and settlement; OpenZeppelin’s implementation packages name/symbol/decimals with transfer and allowance logic into an inheritable contract.
Scope: the docs stress that decimals is a display convention only and arithmetic on-chain stays integer; the default is 18 and can be overridden. This is directly relevant to agent payments and per-token billing.
Open: the standard itself does not define supply caps, minting, freezing or compliance allowlists — each contract does; the approve/allowance model carries known residual-approval risk, so integrators need the security guidance and must not treat “ERC-20” as a trust guarantee.
Key specs
- 标准 / standard
- ERC-20(同质化代币)
- 精度 / decimals
- 默认 18,仅显示用;链上整数运算
- 实现 / implementation
- OpenZeppelin Contracts 5.x ERC20
- 常见用途 / uses
- 计价、投票、质押、结算
- 本站口径 / scope
- 只记录标准与实现,不评价任何代币
What the source says
any one token is exactly equal to any other token; no tokens have special rights or behavior associated with them
All arithmetic inside the contract is still performed on integers
ERC20 uses a value of 18 for decimals
Source and licence
- Source checked
- 2026-11-17
- Licence / kind
- official-documentation
- Licence evidence
- https://docs.openzeppelin.com/contracts/5.x/erc20
- Category
- Protocol records