メインコンテンツへスキップ

What is an ERC-20 token for beginners: how balances move

    After a token arrives in your wallet, an ERC-20 token is a balance recorded by a smart contract on Ethereum that follows shared rules for reading and moving tokens. Wallets and apps can use those common functions to handle many different tokens in a consistent way.

    How an ERC-20 token moves

    When a project issues an ERC-20 token, its contract tracks the total supply and each address’s balance. EIP-20, the ERC-20 standard published through Ethereum Improvement Proposals, specifies the functions and events that compatible tokens use. Its Token Methods section defines totalSupply and balanceOf for reading amounts, and transfer for sending tokens; the standard also specifies approval functions for authorised spending. The standard applies to token contracts on Ethereum.

    A wallet such as MetaMask reads the token contract to show your balance; the balance is not stored inside the wallet. For a transfer, the wallet submits a call to that contract, which updates the recorded balances and emits a transfer event. The call uses Ethereum, so you pay its gas fee in ETH. Your token balance changes, while your ETH pays for processing.

    RenBridge used ERC-20 tokens for assets represented on Ethereum: when BTC arrived, the bridge minted renBTC, and when BTC was released, it burned renBTC. For background on that cross-chain process, renbridge alternative adds context on the bridge alongside this token explanation. A renBTC balance still appeared as an entry in its Ethereum token contract.

    The display can hide a big difference between the balance shown and the integer recorded by the contract. The decimals setting tells wallets how to format that integer; it does not change the underlying arithmetic. The OpenZeppelin ERC20 documentation explains this display role. Most ERC-20 tokens use 18 decimals, while renBTC and WBTC use 8, like BTC.

    Take an illustrative renBTC balance of 0.25. With 8 decimals, the contract represents it as 25,000,000 base units: the wallet divides the raw amount by 100,000,000 to display 0.25. A token with 18 decimals would use a different raw integer for the same displayed amount. When checking a transaction or reading contract data, compare values only after accounting for that token’s decimals.

    Two other functions matter when a contract needs to spend your tokens. approve sets an allowance for a spender, and allowance reports how much it may still spend. The spender can then use transferFrom to move tokens within that limit. A decentralised exchange or bridge may request approval before carrying out a swap or deposit. Review which contract is asking and the amount you authorise.

    Send tokens to the recipient address intended for them. Sending an ERC-20 token to the token contract’s own address usually locks it there permanently: a standard token contract generally has no function to return tokens accidentally sent to itself. Check the destination address and network before confirming.

    In everyday use, ERC-20 tokens can represent stablecoins, governance or game tokens, or tokenised versions of other assets. Their shared interface helps wallets, exchanges and other contracts recognise and handle them. The token contract keeps the balance; your wallet reads and displays it; ETH pays for Ethereum transactions.

    Related questions

    ERC-20 token vs ETH

    ETH is Ethereum’s native asset, used to pay gas and transferred by the network’s own transaction rules. An ERC-20 token is managed by a separate smart contract on Ethereum. You can hold both in the same wallet, but a token transfer still needs ETH for gas.

    Do ERC-20 tokens work on chains other than Ethereum?

    An ERC-20 token contract works on the Ethereum network where it was deployed. A token with the same name or ticker on another chain is a separate contract and balance system. A bridge may move value between networks by locking, minting or burning representations, but the token does not automatically work across chains.

    What is an ERC-20 address?

    It is the Ethereum address of a token contract, or an Ethereum account that holds tokens. To add a token to a wallet, you usually enter the contract address so the wallet can read that contract’s balance for your account. Verify the contract address from a trusted source; a matching token name alone does not establish that it is the token you intend.

    More questions beginners ask

    How do I add a custom ERC-20 token to MetaMask?

    Choose Ethereum in MetaMask, open the option to import or add a token, and enter the token’s verified contract address. MetaMask can use the contract to retrieve its symbol and decimals, then display the balance held by your address. Adding it changes what the wallet displays; it does not move tokens or create a balance.

    What happens if I send an ERC-20 token on the wrong network?

    The result depends on the network and destination address. A compatible address on another network may receive tokens there, but your Ethereum wallet view may not show them until you switch networks and add the relevant token contract. If the destination or chain cannot access the token, recovery may be impossible. Confirm the network before sending.

    How does an ERC-721 NFT differ from an ERC-20 token?

    ERC-20 tokens are fungible: each unit of the same token is interchangeable. ERC-721 tokens are non-fungible, with individually identified items that are distinct from one another. A wallet or app uses each standard’s different interface to track and handle the asset.

    あなたへのおすすめ