Close Menu
CryptoGlobeToday.comCryptoGlobeToday.com
    What's Hot

    Wall Street’s Tokenization Race Heats Up as SEC Reviews New Rules

    June 25, 2026

    RWA Perpetuals Now Capture One-Third of On-Chain Trading Volume

    July 22, 2026

    Sensex, Nifty 50 Crash, Then Strike Back as India Defies Global Chaos

    July 15, 2026
    Facebook X (Twitter) Instagram
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms and Conditions
    Facebook X (Twitter) Instagram
    CryptoGlobeToday.comCryptoGlobeToday.com
    • News

      HTX Research Publishes Six-Month Outlook for Bitcoin and Crypto Markets

      November 21, 2026

      Goldman Sachs Predicts 18% Gain for S&P 500 by End of 2027

      November 20, 2026

      Coinbase brings Morpho-backed loans to all 50 US states

      November 17, 2026

      Bitcoin Fear Hits Extreme Levels as Analyst Sees Contrarian Signal

      November 16, 2026

      Kava Lend Exploit Exposes a Dangerous Gap in DeFi Collateral Accounting

      November 15, 2026
    • Technology

      Cyber Exploit Probe Follows $968,000 CYBER Sale and Transfer Halt

      November 21, 2026

      OFAC sanctions Comancheros commander, lists Tron address

      November 19, 2026

      Bitcoin Scam Risk Warning: HashOcean

      November 18, 2026

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

      November 17, 2026

      ARTEX AI tool breaches networks in under 3 hours, FBI warns

      November 16, 2026
    • Learn/Guide

      Cheapest Way to Transfer Crypto Between Wallets: 2026 Fee Statistics

      November 10, 2026

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

      November 9, 2026

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

      November 8, 2026

      What Happens When a Cryptocurrency Reaches Its Maximum Supply?

      November 7, 2026

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

      November 6, 2026
    • Regulation

      Ethereum-Based eSports Platform FirstBlood Raises US$5.5m in Mere Minutes

      November 20, 2026

      Kava Votes to Freeze HARD Lend Borrowing After 53.9M KAVA Exploit

      November 19, 2026

      Dr. Ruja Flees Sinking Ship as Regulators Crack Down on OneCoin

      November 18, 2026

      What Is the ERC20 Ethereum Token Standard?

      November 17, 2026

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

      November 16, 2026
    • Live Pricing Chart
    CryptoGlobeToday.comCryptoGlobeToday.com
    Home » What Is the ERC20 Ethereum Token Standard?
    Regulation

    What Is the ERC20 Ethereum Token Standard?

    November 17, 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

    Ethereum-Based eSports Platform FirstBlood Raises US$5.5m in Mere Minutes

    November 20, 2026

    Kava Votes to Freeze HARD Lend Borrowing After 53.9M KAVA Exploit

    November 19, 2026

    Dr. Ruja Flees Sinking Ship as Regulators Crack Down on OneCoin

    November 18, 2026

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

    November 16, 2026
    Top Posts

    Nearly 70% of Russians see no use for crypto under Moscow’s new terms

    August 4, 2026

    BTC Ecosystem partners with AntPool and Bitmain to reshape the future of crypto mining

    May 25, 2026

    Bitcoin ETFs Turn Positive in 2026 After $2.4B Weekly Inflow

    September 26, 2026

    Welcome to CryptoGlobeToday.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

    HTX Research Publishes Six-Month Outlook for Bitcoin and Crypto Markets

    November 21, 2026

    Goldman Sachs Predicts 18% Gain for S&P 500 by End of 2027

    November 20, 2026

    Coinbase brings Morpho-backed loans to all 50 US states

    November 17, 2026
    Advertisement
    Demo
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms and Conditions
    © 2026. Designed by CryptoGlobeToday.com.

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