How to Revoke Token Approvals After a Wallet Breach
In this article
If your crypto wallet has been compromised, the attacker may already have access to your tokens. However, many breaches involve token approvals—permissions you’ve granted to smart contracts that allow them to spend your tokens. Revoking these approvals can stop further theft and limit the damage. This guide walks you through the process step by step, using tools like Etherscan or Revoke.cash, and explains how to secure your remaining assets.
What You'll Need
- A web browser (desktop recommended for clarity)
- Access to your wallet’s private key or seed phrase (if you still have control)
- The public address of your compromised wallet
- A small amount of the native currency (ETH, BNB, MATIC, etc.) for gas fees
- A secure, non-compromised wallet to move remaining funds to (optional but highly recommended)
Step-by-Step
- Assess the breach immediately. If you still have control of the wallet (you can still sign transactions), move any remaining valuable assets to a new, secure wallet first. Use a hardware wallet or a fresh software wallet. Do this before revoking approvals, because revoking takes time and gas, and the attacker might still be active.
- Identify the network(s) involved. Token approvals are chain-specific. If you used the wallet on Ethereum, BNB Chain, Polygon, or others, you need to revoke on each chain separately. Check your wallet’s transaction history to see which chains you’ve interacted with.
- Use a block explorer to view approvals. Go to Etherscan (for Ethereum) or the equivalent explorer for your chain (e.g., BscScan for BNB Chain). Enter your wallet address in the search bar. Look for the “Approvals” or “Token Approvals” tab (on Etherscan, it’s under the “More” dropdown). This shows all tokens and the contracts you’ve approved to spend them.
- Alternatively, use a dedicated revoke tool. Revoke.cash is a popular, free tool that aggregates approvals across multiple chains. Connect your wallet to the site, select the network, and it will list all active approvals. This is often easier than using block explorers, especially if you have many.
- Identify high-risk approvals. Look for approvals to contracts you don’t recognize, or those with unlimited spending limits (often shown as “Unlimited” or a very large number). Prioritize revoking these. Also revoke any approvals to known malicious contracts if you can identify them (e.g., from phishing sites).
- Revoke each approval. On Revoke.cash, click “Revoke” next to each approval. Your wallet will prompt you to confirm the transaction. On Etherscan, you’ll need to use the “Revoke Approval” function, which requires you to set the allowance to 0. You’ll need to pay gas fees for each revocation.
- Verify the revocations. After the transactions confirm, refresh the approval list. The approvals should no longer appear. Double-check that the token balances are no longer at risk.
- Monitor the wallet. Even after revoking, keep an eye on the wallet address for any unauthorized transactions. If you moved funds out, consider abandoning the wallet entirely.
Common Mistakes
- Forgetting to revoke on all chains. Approvals are per-chain. Revoking on Ethereum does nothing for approvals on Polygon or BNB Chain.
- Revoking after moving funds. If you move your tokens to a new wallet, the old wallet’s approvals become irrelevant for those tokens. Revoking is only useful if you’re keeping assets in the compromised wallet.
- Interacting with phishing sites. Always use official tools like Revoke.cash or the block explorer directly. Scammers create fake revoke sites that steal your private key.
- Not checking for “Unlimited” approvals. These are the most dangerous. If you see an approval with a huge allowance, revoke it first.
- Using a compromised device. If your wallet was breached due to malware, revoking from the same device may not be safe. Use a clean, secure device if possible.
Tips
- Move funds first, revoke later. The priority is to secure your assets. Revoking is secondary, as it only prevents future spending, not past theft.
- Batch revocations where possible. Some tools allow you to revoke multiple approvals in one transaction (e.g., using a batch transaction). This saves gas and time.
- Use a hardware wallet for the new wallet. This provides a higher level of security against future breaches.
- Regularly audit your approvals. Even without a breach, check your approvals periodically and revoke any you no longer need.
- Consider using a burner wallet for new dApps. For any new DeFi interaction, use a separate wallet with only the funds you need, to limit exposure.
Troubleshooting
- Transaction fails or runs out of gas. Increase the gas limit or price. Revoking approvals is a simple transaction, but if the network is congested, you might need to adjust. Try again with a higher gas fee.
- Approval not showing in the list. Some tokens use a different approval mechanism (e.g., ERC-20 vs. ERC-721). Make sure you’re checking the correct token standard. Also, some approvals are for NFTs, which are handled separately.
- Wallet won’t connect to Revoke.cash. Try a different browser or clear your cache. Ensure your wallet is unlocked and you’re on the correct network. If using a hardware wallet, make sure it’s plugged in and the app is open.
- Attacker still moves funds after revoking. If you haven’t moved your funds yet, do so immediately. Revoking only stops future transfers; it doesn’t undo the damage. If the attacker has already drained the wallet, revoking is moot.
- You don’t have enough native currency for gas. You’ll need to purchase some (e.g., ETH) and send it to the wallet. If the wallet is compromised, be careful—the attacker might sweep it immediately. Consider using a “gasless” revoke service if available, but these are rare.
Frequently Asked Questions
What exactly is a token approval?
A token approval is a permission you give to a smart contract (like a DEX or lending protocol) to spend a certain amount of your tokens on your behalf. This is required for many DeFi operations, but if the contract is malicious or compromised, it can drain your wallet.
Can I revoke an approval if I no longer have access to the wallet?
No, you need to sign a transaction from the wallet to revoke an approval. If you’ve lost access (e.g., private key stolen and changed), you cannot revoke. In that case, immediately move any remaining funds to a new wallet if possible, and consider the old wallet lost.
How do I know if an approval is dangerous?
Any approval to a contract you don’t recognize or that has an “Unlimited” allowance is risky. Also, check if the contract has been verified on the block explorer. Unverified contracts are more suspicious.
Does revoking an approval cost gas?
Yes, each revocation is a transaction that requires gas fees. The cost varies by network and congestion. On Ethereum, it can be expensive; on layer-2s like Arbitrum or Polygon, it’s usually cheaper.
What if I accidentally revoke an approval for a service I still use?
You can always re-approve later. Revoking just removes the permission; you can grant it again by interacting with the service. It’s better to revoke and re-approve than to leave a risky approval active.
Should I revoke all approvals or just the ones I’m worried about?
Ideally, revoke all approvals, especially if you’re abandoning the wallet. If you plan to keep using the wallet, revoke only the ones you don’t recognize or that are unlimited. But after a breach, it’s safest to revoke everything and start fresh with a new wallet.