Token approvals and how to revoke them
When you use apps on a blockchain you often approve them to spend your tokens. Learn the risks of unlimited approvals and how to revoke them.
On blockchains such as Ethereum, you can connect your self-custody wallet to apps called decentralized applications, or dApps. Examples are token swap sites and lending apps. These apps run on smart contracts, which are programs stored on the blockchain.
What is a token approval?
Before a smart contract can move your tokens, you must give it permission. This permission is called a token approval or allowance. You sign it with your wallet, and it stays on the blockchain until you change it.
Many apps ask for an unlimited approval by default. That saves you a fee next time, because you do not need to approve again. But it also means the contract can move all of that token from your wallet, at any time, without asking again.
Why approvals can be dangerous
- If the app's contract is later hacked, attackers may use old approvals to drain wallets.
- If the "app" was a scam from the start, the approval is the theft itself. You signed a permission that lets the scammer take your tokens.
- Old approvals you forgot about stay active for months or years.
Lina swaps 50 USDC on a token swap site. The site asks for an unlimited USDC approval and she clicks confirm. A year later she holds 3,000 USDC in the same wallet. The swap site's contract gets hacked, and the attacker uses her old unlimited approval to take all 3,000 USDC. If she had approved only 50, or revoked the approval after the swap, the attacker could have taken nothing.
Safer approval habits
- Read what you sign. If your wallet says "approve", "set approval for all" or "permit", you are granting spending rights, not just logging in.
- Limit the amount. Many wallets let you edit the approval to the exact amount you need.
- Revoke when done. Use your wallet's built-in permissions page or a well-known approval checker from a block explorer to see and cancel old approvals. Revoking is itself a blockchain transaction, so it costs a small network fee.
- Use a separate wallet for experiments. Keep savings in one wallet that never connects to new apps, and use a second wallet with small amounts for trying dApps.
Some scam sites ask you to sign an "off-chain" message that looks harmless but actually grants a spending permit. If a site you do not fully trust asks you to sign anything, stop and close it.
Approvals vs custody
Approvals only exist with self-custody wallets connected to smart contracts. Exchange accounts work differently. Still, the lesson is the same: every permission you grant is a door, and doors you no longer use should be closed.
A free account tracks lessons, unlocks the quizzes and gives you 10,000 virtual USD (no real value) to practise with.