The ERC-20 Standard
Token interface.
What Is ERC-20?
ERC-20 is the standard interface for fungible tokens on Ethereum. Fungible means every unit is identical and interchangeable, like currency.
Because all ERC-20 tokens share the same interface, wallets and exchanges can support any of them automatically.
The Required Functions
An ERC-20 token must implement six functions:
totalSupply()balanceOf(account)transfer(to, amount)approve(spender, amount)allowance(owner, spender)transferFrom(from, to, amount)
All lessons in this course
- The ERC-20 Standard
- Implementing a Token
- Allowances
- Minting and Burning