Web3 moves faster than traditional markets. Learn how to monetize the high-velocity attention layer of Farcaster, Solana, and the decentralized social graph.
ERC-20 is the most widely used token standard on Ethereum. It defines a common set of rules that all fungible tokens must follow, enabling wallets, exchanges, and dApps to interact with any ERC-20 token using the same interface.
Core Functions
Every ERC-20 contract must implement these functions:
| Function | Purpose |
|---|
totalSupply() | Total tokens in existence |
balanceOf(address) | Check an address's balance |
transfer(to, amount) | Send tokens to another address |
approve(spender, amount) | Allow another address to spend tokens |
transferFrom(from, to, amount) | Spend approved tokens on behalf of owner |
allowance(owner, spender) | Check approved spending amount |
Events
- Transfer: Emitted when tokens move between addresses
- Approval: Emitted when a spender is approved
Why ERC-20 Matters
- Any wallet can hold any ERC-20 token
- DEXs can list tokens without custom integration
- DeFi protocols compose with tokens uniformly
Composability
- Tokens work with lending protocols, DEXs, and yield strategies
- Smart contracts can interact with any ERC-20 the same way
- Building blocks for complex DeFi products
Popular ERC-20 Tokens
- USDC — Circle's stablecoin
- UNI — Uniswap governance token
- LINK — Chainlink oracle token
- AAVE — Aave protocol token
- ARB — Arbitrum governance token
Limitations
- No built-in metadata (name, symbol are optional)
- approve() pattern has known security considerations
- Gas costs for token operations
- Some edge cases around decimal handling
Extensions
- ERC-777: Advanced token with hooks and operators
- ERC-4626: Tokenized vault standard
- ERC-2612: Gasless approvals via permits