Memecoin trading 2 min read
How much can an ERC-20 token approval spend?
Read the owner, spender and remaining allowance separately from your token balance.
View the worked illustrationClose illustration
Scroll the illustration to inspect the details.
An ERC-20 approval gives a named spender an allowance for one token contract and owner. It does not itself move the approved tokens. To understand what happened, read the token balance and the allowance as two different records, and confirm the chain, token and spender on both.
Follow one approval and one transfer
Start with 100 tokens owned and an allowance of zero. After a standard approval of 30, the wallet still owns 100 and the named spender is authorized for up to 30. If that spender then uses an ordinary allowance-consuming transfer of 12, the owner holds 88 and the remaining allowance is 18. This example assumes no transfer tax, no other activity, a finite allowance and a standard implementation. Some contracts treat very large unlimited approvals differently.
A second spender has its own allowance. Reading 18 for the first cannot tell you what a different contract can spend. Likewise, the same wallet address on a second chain has a separate history.
Identify what a change can actually undo
Reducing an allowance affects future use once the change takes effect. It cannot reverse a completed transfer. If the displayed balance falls before an allowance update confirms, check which transaction was included first. Use the token contract and spender addresses from trusted records to distinguish a real allowance from a label copied by another asset. Approving another contract simply to inspect an existing allowance is unnecessary.
Use the contract identity checks before comparing balances or permissions with a different chain or token.
Read next
More from this space
-
2 min read
Use an ETH explorer to read a failed token swap
Distinguish a pending hash, a failed mined receipt and a successful execution, then check the actual gas paid.
-
2 min read
US memecoin swap records when no cash changes hands
Reconstruct a US investor’s example token-for-token disposition using dollar basis, value received and transaction records.
-
2 min read
A hidden or unsolicited token in Phantom: what changed?
Separate a wallet’s visibility warning from token ownership and a verified or realizable dollar value.