Technical definition
ERC-20 is an Ethereum Request for Comments (ERC) standard that specifies a uniform interface for tokens on the Ethereum network. It requires six mandatory functions (totalSupply, balanceOf, transfer, transferFrom, approve, allowance) and two optional events (Transfer, Approval) to ensure interoperability between tokens and wallets, exchanges, and smart contracts. The standard enforces that tokens are fungible—each unit is interchangeable with another—and includes mechanisms for approving third-party spending limits and tracking token balances.
An analogy
Think of ERC-20 tokens like standardized train tickets. All first-class tickets follow the same rules: they grant access to the same car, are interchangeable, and can be transferred or sold without changing their fundamental purpose. Just as train operators must accept any valid first-class ticket, Ethereum wallets and applications must recognize and handle any ERC-20 token uniformly.
Why it matters
ERC-20 enables seamless integration of new tokens with existing Ethereum infrastructure, reducing development time and ensuring compatibility across wallets, exchanges, and decentralized applications. Without this standard, each token would require custom integration, fragmenting the ecosystem.
Where it came from
ERC-20 was proposed in November 2015 by Fabian Vogelsteller and Vitalik Buterin as part of Ethereum's early standardization efforts. It quickly became the dominant token standard, with the vast majority of Ethereum-based tokens adopting it.
Example in practice
The stablecoin USDT (Tether) is an ERC-20 token. When you send USDT to another Ethereum address, the transaction follows the ERC-20 rules: the sender's balance decreases, the recipient's balance increases, and the total supply remains unchanged.
Common misconceptions
- ERC-20 tokens are all cryptocurrencies → Correction: ERC-20 defines a standard for tokens, which can represent anything from currencies to access rights or digital collectibles, not just cryptocurrencies.
- ERC-20 tokens are native to Ethereum → Correction: ERC-20 tokens are smart contracts deployed on Ethereum, not part of the Ethereum protocol itself.
Risks & limitations
- Smart contract vulnerabilities: ERC-20 tokens are implemented as smart contracts, which can contain bugs or exploits (e.g., reentrancy vulnerabilities) that may lead to loss of funds.
- No built-in recovery mechanism: If a user sends tokens to the wrong address or loses access to their private key, there is no way to recover the tokens, as the blockchain is immutable.
- Gas costs: Each ERC-20 transaction requires Ethereum gas fees, which can become expensive during network congestion.
- Centralization risks: Some ERC-20 tokens (e.g., stablecoins) are centralized, relying on issuers to maintain reserves or comply with regulations, which may introduce counterparty risk.