approvals ERC-20 security

· Educational crypto

What is a token approval? (ERC-20 explained)

Plain-English explanation of ERC-20 token approvals: unlimited vs exact allowances, how drain scams use approve, and how to read a wallet permission prompt.

On Ethereum-compatible chains, ERC-20 tokens do not move themselves when you click “swap” or “deposit.” First, many apps ask your wallet to approve a spender contract so it may later pull a limited (or unlimited) amount of that token. Public ethereum.org and MetaMask education pages treat approvals as a core permission beginners must understand—not as a buy/sell signal.

What an approval actually is

An approval is a transaction (or, with permit-style flows, a signature) that sets an allowance: “spender address X may transfer up to amount Y of token Z from my address.” After that, the spender can call transferFrom without asking you again until the allowance is used up or revoked. You are not “sending” the tokens in that moment; you are granting a standing permission.

Unlimited vs exact allowance

Wallet and revoke-tool educators repeatedly note: unlimited approvals are a common path in “drain” incidents after someone signed on a fake site.

How people get drained

  1. You visit a lookalike site (ad, Discord link, typo domain).
  2. The site asks you to “connect,” then “approve” a token for a hostile spender.
  3. You confirm in the wallet without reading spender address, token, or amount.
  4. Later (seconds or days), the spender pulls the allowance. Your seed was never stolen—the permission you signed was enough.

Related pattern: setApprovalForAll on NFTs (ERC-721/1155), which can authorize an operator for an entire collection. Same literacy rule: know what you are authorizing.

How to read an approval prompt

If any field is unclear, reject and research offline. Urgency (“approve in 60 seconds or lose access”) is a classic social-engineering tell, also stressed in general phishing guidance from public cyber agencies.

TakeawayAn approval is a standing permission, not a receipt. Unlimited allowances to unknown spenders are how many “I didn’t send anything” drains happen.

Related free docs & literacy pack

Sources

Educational content only — not investment advice. This page explains permissions and abuse patterns; it does not recommend any token, protocol, or trade.

← All docs