Close Menu
CryptoDispatchDaily.comCryptoDispatchDaily.com
    What's Hot

    Binance adds news features to Binance Junior to increase family crypto savings and learning

    February 19, 2026

    What Happens to Your Crypto If an Exchange Goes Bankrupt?

    October 22, 2026

    Bitcoin Eyes MId-$80,000s As Peter Brandt Flags ‘Horn’ Pattern

    March 16, 2026
    Facebook X (Twitter) Instagram
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms and Conditions
    Facebook X (Twitter) Instagram
    CryptoDispatchDaily.comCryptoDispatchDaily.com
    • News

      CLARITY Act unlikely to advance as Congress focuses on SEC, CFTC picks

      November 16, 2026

      Bitcoin Faces Massive Liquidation Cluster Near $60K, Glassnode Warns

      November 15, 2026

      XRP Price Is Down 30% in Seven Weeks, but Large Holders Keep Growing. Is a Rebound Near?

      November 13, 2026

      Cardano core teams near autonomy as IOG names latest partners

      November 10, 2026

      Zcash Activates NU7 With 25-Second Block Target and New Fee Reserve

      November 7, 2026
    • Technology

      Bitcoin Scam Risk Warning: HashOcean

      November 18, 2026

      Solana 1.0 Replaces Beta Label as SOL Slides to Four-Month Low

      November 17, 2026

      5 major events that could move Bitcoin price: Crypto week ahead

      November 16, 2026

      Lightning Analytics Firm Amboss Unveils Data Sharing Feature. The End Of Privacy?

      November 15, 2026

      Cronos v1.8 Moves Block-STM Into the SDK: What Node Operators Must Change to Opt In

      November 14, 2026
    • Learn/Guide

      Cheapest Way to Transfer Crypto Between Wallets: 2026 Fee Statistics

      November 11, 2026

      How Crypto Exchanges Make Money: Revenue Statistics and Fee Breakdown (2026)

      November 10, 2026

      How Long Does a Bitcoin Transaction Take? Fees and Confirmation Times

      November 9, 2026

      What Happens When a Cryptocurrency Reaches Its Maximum Supply?

      November 8, 2026

      Crypto Rug Pull Statistics: How Common Are They in 2026?

      November 7, 2026
    • Regulation

      What Is the ERC20 Ethereum Token Standard?

      November 18, 2026

      Cronos v1.8 Hits Mainnet, but Its 66% Throughput Claim Can’t Be Tested Yet

      November 15, 2026

      DeepMind’s Agent Swarm Breaks Kimi K3, GLM-5.3 and DeepSeek in 99% of Injection Tests

      November 14, 2026

      South Korea Crypto Exchanges May Freeze Withdrawals on Hack Fears

      November 13, 2026

      ENS’s Governor Nexus Explained: Which Governance Attack Each Change Closes

      November 12, 2026
    • Live Pricing Chart
    CryptoDispatchDaily.comCryptoDispatchDaily.com
    Home » What Is the ERC20 Ethereum Token Standard?
    Regulation

    What Is the ERC20 Ethereum Token Standard?

    November 18, 20265 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    The Merkle logo
    Share
    Facebook Twitter LinkedIn Pinterest Email


    ERC-20 is the shared rulebook for fungible tokens on Ethereum. It lists six functions and two events that a token’s smart contract must expose under agreed names, so any wallet, exchange or other contract can work with any token in the same way.

    “Fungible” means every unit is interchangeable with every other unit, the way one ETH equals any other ETH. A token contract that implements the required functions and events can be called an ERC-20 token.

    Where ERC-20 came from

    ERC stands for Ethereum Request for Comments. The number 20 comes from the GitHub issue where the proposal was discussed: issue #20 in the Ethereum EIPs repository.

    The formal document is EIP-20. It lists Fabian Vogelsteller and Vitalik Buterin as authors, carries a creation date of November 19, 2015, and has the status Final. Its history section points back to an earlier outline by Buterin on the Ethereum wiki for standardized contract interfaces.

    The motivation in the EIP is short. If every token speaks the same interface, wallets and decentralized exchanges can reuse one piece of code for all of them.

    The required functions and events

    These six functions are mandatory. The signatures below are the ones in EIP-20.

    • totalSupply(): Returns the total number of tokens in existence.
    • balanceOf(address _owner): Returns how many tokens one address holds.
    • transfer(address _to, uint256 _value): Moves tokens from the caller to another address.
    • approve(address _spender, uint256 _value): Lets another address spend up to a set amount of the caller’s tokens.
    • allowance(address _owner, address _spender): Returns how much a spender may still take from an owner.
    • transferFrom(address _from, address _to, uint256 _value): Moves tokens on an owner’s behalf, using an allowance set by approve.

    transfer, transferFrom and approve each return a bool that signals success.

    Two events are also mandatory:

    • Transfer(address indexed _from, address indexed _to, uint256 _value) must fire whenever tokens move, including transfers of zero.
    • Approval(address indexed _owner, address indexed _spender, uint256 _value) must fire on every successful call to approve.

    Three more functions are optional: name(), symbol() and decimals(). The EIP says other contracts must not expect them to be present. In OpenZeppelin’s widely used implementation, decimals defaults to 18 and affects only how balances are displayed, not the contract’s arithmetic.

    What “meeting the standard” means in practice

    There is no certificate and no central registry. A token meets ERC-20 when its contract has the six functions and two events with the exact names, parameters and return types above, and behaves as the EIP describes.

    The behavior rules are few:

    • transfer should fail if the sender’s balance is too low.
    • transferFrom should fail unless the owner has authorized the caller.
    • A transfer of zero tokens counts as a normal transfer and must emit the event.
    • A contract that creates new tokens should emit a Transfer event with the _from address set to 0x0.
    • Code that calls a token must check for a false return value and must not assume it never happens.

    The two ways to move tokens map to two situations. With transfer, you send your own tokens directly. With approve plus transferFrom, you first grant a contract an allowance, and that contract then pulls the tokens when its own logic runs. Decentralized exchanges and other applications rely on the second pattern.

    Everything else is left to the token’s author: how the supply is created, whether it can grow, and who controls it. ERC-20 describes the interface, not the economics or the safety of a token.

    Known pitfalls

    The approve race condition. Changing an existing allowance from one nonzero amount to another opens a window in which the spender might use both the old and the new amount. The EIP advises user interfaces to set the allowance to zero first and then set the new value. It also says token contracts should not enforce this themselves.

    Tokens sent to contracts that cannot handle them. A plain transfer does not notify the receiving address. If that address is a contract with no code for moving tokens out again, the tokens can be stuck for good. Ethereum.org puts losses from this problem at more than $83 million in ERC-20 tokens as of June 20, 2024. Its suggested mitigations include depositing through approve and transferFrom, and adding a recovery function to contracts.

    Non-standard return values. Some widely held tokens do not follow the return type rule. USDT, BNB and OMG are documented as returning no bool from some ERC-20 methods. Other tokens return false on failure instead of reverting, which the standard permits but which a careless caller can miss. USDT also refuses to change a nonzero allowance to another nonzero value.

    Developers usually handle these cases with a wrapper. OpenZeppelin’s SafeERC20 library reverts when a token returns false, accepts tokens that return nothing, and includes a forceApprove function for tokens such as USDT.

    How later standards relate

    Later standards either extend ERC-20 or cover cases it does not.

    • ERC-721 (created January 2018) is the standard for non-fungible tokens. Each token is distinct and its ownership is tracked individually.
    • ERC-777 (created November 2017) adds operators who can send tokens for a holder, plus hooks that notify senders and recipients. It stays backward compatible with ERC-20.
    • ERC-1155 (created June 2018) lets one contract manage many token types, fungible or not, and transfer several of them in one batch.
    • EIP-2612 (created April 2020) adds a permit function. The holder signs a message off-chain and anyone can submit it to set an allowance, so the holder does not need ETH for a separate approval transaction.
    • ERC-4626 (created December 2021) standardizes tokenized vaults. The vault holds one underlying ERC-20 token and issues shares that are themselves ERC-20 tokens.

    ERC-223 and ERC-1363 are two further proposals that target the stuck-token problem by letting a receiving contract react to an incoming transfer.

    ERC-20 remains the base layer for all of them. The six functions listed above are still what a wallet calls when it shows a token balance or sends a payment.

    Sources



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

    Related Posts

    Cronos v1.8 Hits Mainnet, but Its 66% Throughput Claim Can’t Be Tested Yet

    November 15, 2026

    DeepMind’s Agent Swarm Breaks Kimi K3, GLM-5.3 and DeepSeek in 99% of Injection Tests

    November 14, 2026

    South Korea Crypto Exchanges May Freeze Withdrawals on Hack Fears

    November 13, 2026

    ENS’s Governor Nexus Explained: Which Governance Attack Each Change Closes

    November 12, 2026
    Top Posts

    What is IDO? A Beginner’s Guide to Initial DEX Offerings in Crypto

    February 18, 2026

    The Fine Print Nobody Reads: What Crypto Casino KYC Clauses Actually Say

    September 25, 2026

    Arc’s Billion-Dollar Debut Marred as ACTFUN Launchpad Executes Day-One Exit Scam

    September 17, 2026

    Welcome to CryptoDispatchDaily.com! Your go-to source for fast, reliable updates from the ever-evolving world of cryptocurrency. Whether it's Bitcoin, altcoins, blockchain breakthroughs, or DeFi trends, we bring you timely insights, expert analysis, and key developments shaping the future of digital finance. Stay ahead with real-time crypto news and in-depth coverage.

    Top Insights

    CLARITY Act unlikely to advance as Congress focuses on SEC, CFTC picks

    November 16, 2026

    Bitcoin Faces Massive Liquidation Cluster Near $60K, Glassnode Warns

    November 15, 2026

    XRP Price Is Down 30% in Seven Weeks, but Large Holders Keep Growing. Is a Rebound Near?

    November 13, 2026
    Advertisement
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms and Conditions
    © 2026. Designed by CryptoDispatchDaily.com.

    Type above and press Enter to search. Press Esc to cancel.