An ERC-20 token is a fungible token issued by a smart contract that follows the ERC-20 standard on the Ethereum blockchain. "ERC" stands for Ethereum Request for Comments, and 20 was the number of the proposal. The standard defines a small, fixed set of functions for checking balances, moving tokens and letting another address spend tokens on the owner's behalf. Because every compliant token exposes the same functions, a wallet or exchange that supports one ERC-20 token can support thousands.
The standard was proposed in November 2015 by Fabian Vogelsteller and Vitalik Buterin and later finalized as EIP-20. It is the format behind most dollar stablecoins on Ethereum, governance tokens, wrapped assets and the tokens sold in the 2017 initial coin offering boom. It covers fungible tokens only; unique items use separate standards such as ERC-721 for NFTs.
ERC-20 in plain terms
Imagine a shopping mall where every shop issues its own gift vouchers. If each shop used a different size, layout and redemption process, the mall's central till could not handle them. ERC-20 is the agreement that every voucher has the same layout: a name, a symbol, a total amount issued, and the same way of handing it over. The till (a wallet or exchange) can then accept any new voucher without special work.
The standard says nothing about what the voucher is worth or who stands behind it. A token issued by a regulated company and a token created by an anonymous person in five minutes look identical to the software. ERC-20 is a format, not a guarantee.
How the standard works
The token contract keeps a ledger mapping each address to a balance. EIP-20 requires six functions and two events:
totalSupplyreturns how many tokens exist, andbalanceOfreturns the balance of a given address.transfermoves tokens from the caller to another address.approvelets the owner authorize a spender up to a set amount, andallowanceshows how much of that authorization remains.transferFromlets an approved spender, such as a decentralized exchange, move tokens from the owner's address.- The
TransferandApprovalevents are logged so wallets and block explorers can track activity.
Optional fields give the token a name, a ticker symbol and a number of decimals. Contracts store whole numbers only, so the displayed balance is the stored integer scaled by the decimals setting:
Here is the token's decimals value. For example, a token with 6 decimals and a raw balance of 2,500,000 shows as 2,500,000 divided by , or 2.5 tokens. Many tokens use 18 decimals, mirroring ether, while USDC and Tether on Ethereum use 6, a difference that has caused costly integration bugs.
Uses
ERC-20 is the default building block of DeFi. Lending markets such as Aave and automated market makers such as Uniswap accept any ERC-20 token, and the shares issued by a liquidity pool are themselves ERC-20 tokens. Bitcoin and other non-Ethereum assets enter this world as wrapped tokens. Real-world assets such as treasury bills and fund shares are issued as ERC-20 tokens in tokenization projects, often with added transfer restrictions.
Because the standard is shared across Ethereum-compatible blockchains, the same contract can be deployed on several networks. Similar standards exist elsewhere, for example BEP-20 on BNB Smart Chain, which follows the same interface. Each copy is a separate token, though: an ERC-20 on one chain does not exist on another unless a bridge or issuer creates it there. ERC-20 is the best-known example of a token standard, a shared specification that lets wallets and exchanges support new tokens without writing custom code for each one.
Risks and limitations
- Unlimited approvals. Many applications ask users to approve an unlimited allowance. If that spender contract is later exploited, the attacker can drain every approved token, so users are advised to review and revoke old approvals.
- Lost transfers. ERC-20 has no hook that lets a receiving contract refuse tokens, so tokens sent directly to a contract that cannot handle them, or to a burn address, are usually lost for good.
- Issuer powers. A token contract can include extra functions to mint, freeze or blacklist. Regulated stablecoin issuers use these to comply with sanctions, which means holders rely on the issuer as well as the code.
- Fees in ether. Moving an ERC-20 token still costs a gas fee paid in the chain's native coin, which confuses new users. Account abstraction under ERC4337 lets applications sponsor or reprice these fees.
The approve-then-spend flow also requires two transactions. Later proposals, such as EIP-2612 "permit" signatures, let the approval be given as an off-chain signature, while the core ERC-20 interface has stayed unchanged.