Technical definition
ERC-20 is a technical standard for smart contracts on the Ethereum blockchain that specifies a common set of functions and behaviors for fungible tokens. These functions include `transfer`, `balanceOf`, `totalSupply`, and `approve`, which allow tokens to be seamlessly integrated with wallets, exchanges, and other decentralized applications (dApps). The standard ensures that tokens created under ERC-20 are interoperable, meaning they can be used across different platforms without requiring custom integration for each one.
An analogy
Think of ERC-20 tokens like USB devices. Just as USB devices follow a standard that ensures they work with any USB port, ERC-20 tokens follow a standard that ensures they work with any Ethereum-compatible wallet, exchange, or application.
Why it matters
The ERC-20 standard simplified the creation and adoption of tokens on Ethereum by providing a universal blueprint. Without it, each token would require custom integration with every platform, making development inefficient and limiting interoperability.
Where it came from
The ERC-20 standard was proposed in November 2015 by Fabian Vogelsteller and Vitalik Buterin. It became widely adopted in 2017 during the ICO boom, as it provided a straightforward way for projects to issue tokens on Ethereum.
Example in practice
A project like Uniswap issues its governance token, UNI, as an ERC-20 token. This allows UNI to be traded on any Ethereum-based exchange, stored in any ERC-20-compatible wallet, and used in decentralized finance (DeFi) protocols without additional customization.
Common misconceptions
- ERC-20 tokens are the same as Ethereum's native cryptocurrency (ETH) → Correction: ETH is the native asset of the Ethereum blockchain, while ERC-20 tokens are assets created on top of Ethereum using smart contracts.
- All tokens on Ethereum are ERC-20 → Correction: Ethereum supports multiple token standards, such as ERC-721 (for non-fungible tokens) and ERC-1155 (for semi-fungible tokens), which have different use cases.
Risks & limitations
- Smart contract vulnerabilities: ERC-20 tokens rely on smart contracts, which can contain bugs or exploits. A flaw in the token's contract could lead to loss of funds (e.g., the Parity Wallet bug in 2017 froze $150M in ERC-20 tokens).
- Centralization risks: Some ERC-20 tokens are issued by centralized entities, meaning they may not be truly decentralized. For example, stablecoins like USDC are ERC-20 tokens but are controlled by a central issuer.
- Gas fees: Transactions involving ERC-20 tokens require gas fees paid in ETH, which can become expensive during network congestion.
- Irreversible transactions: Once an ERC-20 token is sent to the wrong address or a malicious contract, it is often impossible to recover without the recipient's cooperation.