Blockchain knowledge
ERC-20 Tokens on Ethereum: Transfers, Approvals and Allowances
An ERC-20 token is a smart contract that keeps its own table of balances. Sending a token is a call to that contract, paid for in ETH gas, and some actions first need an approval that lets another contract move your tokens.
Token balances live inside the contract
ETH is the native asset of Ethereum. An ERC-20 token such as a stablecoin is recorded inside its token contract, which maps each address to a balance. Your wallet reads that contract to show what you hold.
Because a token transfer runs contract code, it consumes more gas than a plain ETH transfer, and the gas is always paid in ETH. An account that holds tokens but no ETH cannot move those tokens on its own.
How a token transfer looks on an explorer
In a direct token transfer, the transaction is sent to the token contract, usually with an ETH value of zero. The real recipient and amount are encoded in the input data and confirmed by a Transfer event in the receipt logs.
Token amounts are stored as whole numbers and divided by the contract’s decimals for display. Many tokens use 18 decimals, while some widely used stablecoins use 6, so the raw number can look very different from the amount shown in a wallet.
Approvals and allowances
Exchanges, lending apps and other contracts often move tokens on your behalf. To allow that, you first call approve, which records an allowance: the most a named spender may move from your address using transferFrom. Each approval emits an Approval event.
Some apps request an unlimited allowance so you do not have to approve again later. That is convenient, but if the spender contract is malicious or later compromised, it can move up to the full allowance without asking you again.
Reviewing and revoking allowances
An allowance stays in place until it is used up or changed. To remove one, send a new approval for that spender with an amount of zero; this is an on-chain transaction and costs gas.
Before approving, check the spender address and the amount your wallet shows. Approve only what you need when the app allows it, and be cautious with signature requests you do not understand.
Common mistakes to avoid
Sending tokens directly to a token contract address, or to an address on a different network, can make them unrecoverable. Confirm the network and the recipient before every transfer.
Tokens with familiar names can be created by anyone. Verify the contract address from an official source rather than trusting a token symbol shown in a wallet or on a listing.
Primary sources
For the latest network settings and exact fees, consult the protocol documentation rather than treating a guide as a live quote.
Educational information only. Not investment or financial advice. Always verify current network conditions with primary sources.