Token approvals explained, and how to revoke them
What happens when you approve a token or sign a permit, why unlimited approvals are risky, how drainers use them, and how to revoke approvals.
Many crypto thefts do not involve stolen seed phrases at all. The victim signs something that gives a contract permission to move their tokens, and the tokens leave later, sometimes months later. That permission is an approval. Approvals are a normal, necessary part of using decentralised applications, which is exactly why they are so easy to abuse. Knowing what you are approving, and cleaning up old approvals, closes one of the most common doors.
Why approvals exist
On Ethereum and similar networks, tokens such as stablecoins are smart contracts that keep a ledger of balances. A decentralised exchange cannot simply take tokens from your wallet to complete a swap; the token contract would refuse. Instead the ERC-20 standard defines a two-step process:
- You call
approve(spender, amount)on the token contract, allowing a specific address, the spender, to move up to that amount of your tokens. - The spender later calls
transferFromto move tokens from your address, up to the allowance.
The allowance stays in place until it is used up or you change it. It does not expire by default, and it does not care whether you are still using the application.
NFT collections have a related function, setApprovalForAll, which gives an operator permission to transfer all your NFTs in that collection.
Unlimited approvals
To save users from paying for an approval before every trade, many applications request an unlimited approval: the maximum number the contract can store, 2^256 − 1. That is convenient, and it means the spender can move every unit of that token you hold now and any you receive in the future.
A worked example: limited versus unlimited
You want to swap 500 USDC on a decentralised exchange. The app offers two choices.
- Exact approval of 500 USDC. The swap uses the full 500, and the remaining allowance is 0. If the exchange's contract is later exploited, the attacker can take nothing from you through that approval.
- Unlimited approval. The swap uses 500, and the allowance remains effectively infinite. Six months later you hold 8,000 USDC in the same wallet. If the exchange's contract is exploited, or the spender turns out to be malicious, all 8,000 USDC can be moved without any new action from you.
The exact approval costs you an extra approval transaction next time; the unlimited one leaves a permanent door open.
Signatures that act like approvals
Approvals do not always look like transactions.
- Permit signatures. The EIP-2612 extension lets a token holder grant an allowance by signing a typed message instead of sending a transaction. It costs no gas to sign, so the wallet may present it as a harmless "signature request". Whoever holds the signature can submit it and gain the allowance.
- Permit2 and similar systems. Some applications use a shared approval contract, to which you give one approval, and then authorise individual transfers by signatures.
- Typed data (EIP-712). Modern wallets display structured signature requests with fields such as spender, value and deadline. Read them. A request that grants a large value to an unfamiliar spender with a deadline far in the future is an approval in disguise.
Wallet drainer kits used by phishing sites rely heavily on these signatures, because users are more relaxed about "just signing" than about sending a transaction.
How to check your approvals
- Open an approval checker for the network you use, such as the token approval checker on the Etherscan explorer, or another reputable explorer-based or open-source tool. You only need your public address; never enter a seed phrase anywhere to check approvals.
- Review each entry: the token, the spender address and its label if known, and the allowance amount. "Unlimited" entries deserve the most attention.
- Identify spenders you no longer use or do not recognise.
- Revoke them. Revoking means setting the allowance to zero with a new
approve(spender, 0)transaction, or callingsetApprovalForAll(operator, false)for NFTs. The checker prepares the transaction; you sign it in your wallet. - Repeat on every network you have used. Approvals are per token, per spender and per chain.
What revoking costs
Revoking is an on-chain transaction, so it costs gas. A simple approval change uses a few tens of thousands of gas units. As an illustration with the gas calculator: 30,000 gas at 5 gwei is 0.00015 ETH, about $0.30 at an ETH price of $2,000. On layer 2 networks it is usually a small fraction of that. The cost rises when the network is busy.
Limits of revoking
- Revoking does not undo past transfers. Tokens already taken are gone.
- Revoking does not help if your seed phrase is exposed. Anyone with the phrase controls the wallet directly. In that case, move remaining assets to a new wallet created on a clean device.
- Permit signatures that have been signed but not yet submitted do not appear as on-chain approvals. Some can be invalidated by changing the relevant nonce or revoking on the shared approval contract; for others, moving the tokens to a new address is the reliable fix.
- Revoking requires gas. If a drainer has already emptied your ETH, you may need to send a small amount for fees, which an attacker monitoring the wallet may try to sweep. A new wallet is often the cleaner solution.
Habits that prevent most approval losses
- Use a separate wallet for interacting with applications and keep long-term holdings in a wallet that never connects to websites.
- Prefer exact or limited approvals when the app allows editing the amount.
- Read every signature request. If the wallet cannot decode it, do not sign.
- Use wallets that simulate transactions and show the expected balance changes before you sign.
- Review approvals regularly, for example monthly, and after trying any new application.
- Ignore unsolicited tokens and NFTs; interacting with them is a common trap.
Reading a signature request, field by field
When a wallet shows a typed-data request, check these fields before signing:
- Domain or contract: which token or application the signature is for. It should match the site you intended to use.
- Spender or operator: the address that will gain permission. Unknown addresses deserve suspicion.
- Value or amount: how much can be spent. A very large number usually means unlimited.
- Deadline or expiry: when the permission ends. Dates years away are a warning sign.
- Nonce: a counter that prevents the signature being reused.
If any of these is missing or unreadable, or the site insists that the signature is "just to log in" while the wallet shows a spender and an amount, do not sign.
Frequently asked questions
Is approving a token dangerous by itself?
Approving a well-established contract for a specific amount is a normal part of using DeFi. The risk comes from unlimited amounts, malicious or compromised spenders, and approvals left in place long after they are needed.
Do approvals exist on Bitcoin?
Not in the same way. Bitcoin does not have token contracts with allowances. The risks discussed here apply to Ethereum and other networks with similar smart contract tokens.
Can I revoke an approval from an exchange account?
Approvals belong to self-custodied wallet addresses. Tokens held on a centralised exchange are controlled by the exchange, not by approvals you signed.
Why does my wallet ask me to approve before I can swap?
Because the exchange contract needs permission to move your tokens. Swapping native ETH usually does not need an approval; swapping tokens does.
Does revoking show up publicly?
Yes, like any transaction. It reveals that you used the spender in the past, which your approval already did.
Related on this site
Sources
- ERC-20 token standard (approve, allowance, transferFrom)
- EIP-2612: Permit extension for EIP-20 signed approvals
- EIP-712: Typed structured data hashing and signing
- ERC-721 non-fungible token standard (setApprovalForAll)
- Etherscan, Token approval checker
- ethereum.org, Ethereum security and scam prevention
This guide explains how things work. It is general information, not financial, tax or legal advice, and it does not recommend any investment. Rules, rates and figures change; check the source before you act. Found an error? See the corrections policy.