Education

Token Approvals Explained: How to Check and Revoke Crypto Wallet Permissions

An intermediate security guide to token approvals: how ERC-20 allowances, NFT setApprovalForAll and Permit/Permit2 signatures work, why wallet drainers abuse them, and how to check and revoke token approvals step by step.

MyTraderBot DeskPublished: 15 min readخواندن به فارسی
Share
Ledger Nano S hardware wallet connected by USB cable on a wooden desk, with MyTraderBot Guide branding
A Ledger Nano S hardware wallet connected by USB (archive photo, used for illustration). Photo: Motokoka / Wikimedia Commons, CC BY-SA 4.0.
Table of Contents

Token approvals are the permissions you give smart contracts to move tokens out of your wallet, and they are one of the most common ways crypto users lose funds without ever revealing a seed phrase. This intermediate guide explains how ERC-20 allowances, NFT "approval for all" and off-chain Permit signatures work, why wallet drainers love them, and how to check and revoke token approvals step by step on Ethereum and other EVM networks.

Key takeaways

  • An approval lets another address (usually a smart contract) spend your tokens later, without asking you again, up to the amount you approved.

  • Approvals do not expire on their own. ethereum.org notes that a permission can be used "even years after" it was granted.

  • "Unlimited" approvals and NFT setApprovalForAll permissions give a spender access to your whole balance of a token or a whole NFT collection.

  • Permit (EIP-2612) and Uniswap Permit2 approvals can be created with an off-chain signature, which is why signature phishing is so effective.

  • You can check approvals with the Etherscan Token Approval Checker, Revoke.cash and similar tools, and revoke them with a small on-chain transaction that costs gas.

  • Revoking prevents future misuse. It cannot recover stolen funds, and it cannot save a wallet whose seed phrase has been compromised.

In this guide

  • What token approvals are

  • How ERC-20 approve and allowance work

  • Unlimited approvals: convenient but risky

  • NFT approvals: approve and setApprovalForAll

  • Permit and Permit2: approvals by signature

  • Why wallet drainers abuse approvals and signatures

  • How to check and revoke token approvals (step by step)

  • What revoking can and cannot do

  • Other networks: a note on Solana delegates

  • Safe habits for everyday DeFi use

  • Common mistakes

  • FAQ

  • Sources

What are token approvals?

Most tokens on Ethereum and other EVM networks are not stored "inside" your wallet app. They are balances recorded in a token's smart contract. When you want a decentralized exchange, lending protocol or NFT marketplace to use those tokens, the application usually cannot simply take them. It first needs your permission. That permission is a token approval.

Revoke.cash describes the mechanism simply: token contracts keep a record of which addresses you have approved and for how much (or for which assets). When a contract later tries to move your tokens, the token contract checks that record. If permission exists, the transfer goes through. If it does not, the transaction fails.

This design is what makes DeFi work. It is also why an old or careless approval can become a security hole long after you have forgotten about it.

How ERC-20 approve and allowance work

The ERC-20 token standard (EIP-20), created on 19 November 2015, defines the functions most fungible tokens use. Three of them matter here:

  • approve(spender, value) lets the spender withdraw from your account "multiple times, up to the _value amount". Calling it again overwrites the previous allowance with the new value.

  • allowance(owner, spender) returns how much the spender is still allowed to withdraw from the owner.

  • transferFrom(from, to, value) is the function the spender uses to actually move your tokens, which the standard describes as a "withdraw workflow" that allows contracts to transfer tokens on your behalf.

Each successful approve call must emit an Approval event on-chain. Approval checkers rely on these events to build the list of permissions they show you.

What happens in a typical swap

Example: (hypothetical) You want to swap 500 USDC for ETH on a decentralized exchange for the first time. The app asks you to sign two transactions. The first calls approve on the USDC contract, giving the exchange's router contract an allowance. The second performs the swap, during which the router calls transferFrom to pull your USDC. If you approved exactly 500 USDC, the allowance drops to zero after the swap. If you approved an "unlimited" amount, the router can still pull USDC from your wallet in the future.

Unlimited approvals: convenient but risky

An approval transaction costs gas. To save users from paying for a new approval every time, many applications request the maximum possible amount, often shown in wallets as "unlimited". Revoke.cash explains the trade-off: unlimited approvals mean you pay the approval fee once, but the application keeps that access indefinitely.

ethereum.org's guide to revoking token access puts the risk plainly: once a platform has unlimited access to a token, it can spend all of that token even after you have withdrawn your funds from the platform back to your wallet. It also states that contract permissions have no expiration dates.

Two separate risks follow:

  • The spender is malicious. You were tricked into approving a contract controlled by a scammer.

  • The spender is legitimate but gets exploited. Revoke.cash cites the SushiSwap exploit of April 2023 as an example of an established project being hacked, putting users with active approvals at risk.

Some wallets let you edit the requested amount before confirming. ethereum.org notes that some wallets allow you to manually restrict the amount approved; check your own wallet's documentation.

NFT approvals: approve and setApprovalForAll

NFTs have their own approval model.

  • ERC-721 (EIP-721, created 24 January 2018) has an approve function for one specific token ID, and setApprovalForAll(operator, approved) to enable or disable a third-party "operator" that can manage all of your NFTs in that collection.

  • ERC-1155 (EIP-1155, created 17 June 2018) has setApprovalForAll, which the standard says "allows an operator to manage one's entire set of tokens on behalf of the approver". According to Revoke.cash, ERC-1155 has no single-item approve function.

Revoke.cash notes that most NFT marketplaces use the "approval for all" type, because single-item approvals can only be granted to one address at a time. That makes setApprovalForAll a powerful permission: one signature can expose an entire collection you hold.

Example: (hypothetical) You listed one NFT on a marketplace two years ago and approved the marketplace contract for the whole collection. You now hold five NFTs from that collection. The old operator approval still covers all five until you revoke it.

Permit and Permit2: approvals by signature

EIP-2612 permit

EIP-2612, created on 13 April 2020, adds a permit function to ERC-20 tokens that choose to implement it. Instead of sending an approve transaction yourself, you sign a typed message (using the EIP-712 format). Anyone can then submit that signature to the token contract, which sets your allowance to the signed value. The standard is explicit that "the caller of the permit function can be any address".

A permit message contains the owner, spender, value, a nonce and a deadline. The nonce stops the same signature being reused, and the deadline limits how long it is valid. But EIP-2612 also notes that the deadline can be set so that permits "effectively never expire".

Revoke.cash lists the benefit: users can grant limited approvals without paying gas for a separate approval transaction. It also notes a drawback: most tokens do not support EIP-2612.

Uniswap Permit2

Permit2, from Uniswap, is a separate contract that brings signature-based approvals to any ERC-20 token, including tokens that will never add EIP-2612 support. It works in two steps:

  1. You make a one-time standard ERC-20 approval of the Permit2 contract for a token. Uniswap's documentation says this is "commonly for the maximum uint256 amount".

  2. After that, Permit2 manages permissions for individual spenders through signatures or its own approve function.

Permit2 has two modules. AllowanceTransfer stores a standing allowance with an amount and an expiration, which a spender can use repeatedly until it is used up or expires. SignatureTransfer authorizes a single transfer with one signature and leaves no standing allowance. Uniswap lists the Permit2 contract at the same address on every chain it supports except zkSync: 0x000000000022D473030F116dDEE9F6B43aC78BA3.

Permit2 adds useful safety features such as expirations. It also means a single off-chain signature can authorize token movements without a fresh on-chain approval from you.

Why wallet drainers abuse approvals and signatures

A "wallet drainer" is phishing infrastructure on malicious websites that tricks users into signing harmful transactions or messages. The goal is to get you to sign an approval, a permit, or a setApprovalForAll for the attacker, who then moves your assets.

Signature-based approvals are especially attractive to attackers for three reasons:

  • They look harmless. Revoke.cash notes that many wallets warn you when you sign an on-chain approval, but such warnings may be absent for Permit signatures. "So it may look like you're simply signing into a website, but you're actually granting an approval."

  • They are invisible until used. Because a permit is signed off-chain, tools like Revoke.cash cannot see it. The resulting approval only shows up once the attacker submits it on-chain.

  • They are fast. Revoke.cash says that scammers often try to use the approval as soon as possible, leaving little time to cancel.

The scale is documented. Scam Sniffer's 2025 report, published 3 January 2026, tracked $83.85 million in wallet-drainer phishing losses across 106,106 victims on EVM chains in 2025, down 83% from $494 million in 2024. The largest single theft, $6.5 million in September 2025, used a Permit signature. Permit and Permit2 signatures accounted for 38% of losses in cases above $1 million, and one $1.23 million case involved setApprovalForAll on Uniswap V3 NFTs. Scam Sniffer calls its figures a lower-bound estimate that covers only trackable drainer activity.

Phishing does not only come from obviously fake sites. Our report on the Across Protocol domain hijack shows how a real project's domain can be redirected to a phishing site.

How to check and revoke token approvals (step by step)

You can check approvals without connecting a wallet, because approvals are public on-chain data. You only need to connect when you want to revoke.

Option 1: Revoke.cash

Based on Revoke.cash's own instructions:

  1. Go to revoke.cash. Type the address yourself rather than clicking links from ads, emails or direct messages.

  2. Enter your wallet address (or ENS name) in the search bar, or connect your wallet.

  3. Select the network you want to check. Revoke.cash says its website supports more than 80 networks.

  4. Review the list. If you think you signed something malicious, sort by "Newest to Oldest" so recent approvals appear first.

  5. Click Revoke next to an approval, or use the pencil icon to lower the approved amount instead of removing it.

  6. Confirm the transaction in your wallet and pay the network fee.

Option 2: Etherscan Token Approval Checker

Revoke.cash describes the Etherscan process like this:

  1. Open the Token Approvals page (available under the More menu on Etherscan).

  2. Enter your wallet address.

  3. Choose the token type: ERC-20, ERC-721 or ERC-1155.

  4. Turn on Show all approvals so nothing is hidden.

  5. Click Revoke next to the approval you want to remove, then confirm in your wallet.

For other chains, use that chain's own block explorer, such as BscScan or Polygonscan. ethereum.org also lists Blockscout, Unrekt and EverRevoke as revoke tools, and some wallets include their own approvals view.

Step 3: Verify the result

ethereum.org recommends refreshing the tool a few minutes later to check that the revoked contract has disappeared from the list. Make sure your wallet and the tool are on the same network; ethereum.org notes you will only see contracts for the selected network.

What the wallet pop-up will say

Do not panic if a revoke prompt says "approve", "give permission" or "set approval for all". Revoke.cash explains that approving and revoking use the same function: a revoke sets the ERC-20 amount to 0, or the NFT approval to false. In MetaMask you can check this under "Edit Permission" (for ERC-20) or the "data" tab (for NFTs).

Gas cost of revoking

Revoking is an on-chain transaction, so you need the network's native coin to pay the fee, such as ETH on Ethereum. The cost depends on the network and how busy it is. On Ethereum mainnet, cleaning up many approvals can add up, while layer-2 networks are usually cheaper. Revoke.cash says inspecting approvals and revoking them one by one only costs gas. Its batch revoke feature charges free users a $1.50 fee.

Example: (hypothetical) Your checker shows six approvals on Ethereum: two for apps you use weekly, three for projects you tried once in 2023, and one unlimited approval to an address you do not recognise. A sensible order is: revoke the unknown address first, then the abandoned projects, and decide whether to keep or lower the two you actively use.

What revoking can and cannot do

Revoking is preventive hygiene, not a rescue tool.

  • It cannot recover stolen funds. Revoke.cash states this directly. You should still revoke the approval that was used so it cannot be used again.

  • It cannot fix a compromised seed phrase. If any ETH you send to the wallet is immediately swept out by a "sweeper bot", Revoke.cash says your seed phrase was compromised and the wallet should be abandoned. Read our seed phrase guide for how to protect a new one.

  • It cannot cancel an off-chain signature that has not been used yet through an approval dashboard, because the dashboard cannot see it. Revoke.cash says cancelling such signatures may be possible but is "generally very hard".

  • It does not touch your positions. Both ethereum.org and Revoke.cash say revoking does not affect tokens you have already deposited or staked. You only need a new approval to add more.

  • Disconnecting is not revoking. Disconnecting a site from your wallet only stops it seeing your address. Your approvals stay active.

  • A hardware wallet does not stop approval exploits. Revoke.cash explains that a spender with an approval does not need your keys. A hardware wallet still protects your keys, but you must still read what you sign. Device integrity matters too; see our report on tampered Trezor Safe 5 devices.

Other networks: a note on Solana delegates

Approvals are not only an EVM concept. On Solana, the SPL Token program lets account owners delegate authority over some or all of their token balance with an Approve instruction. The delegate can then transfer or burn up to the delegated amount, and the owner can remove that authority with a Revoke instruction. The principle is the same: know who can move your tokens and remove permissions you no longer need.

Safe habits for everyday DeFi use

  • Approve only what you need. Where your wallet allows it, edit the amount to match the transaction instead of accepting "unlimited".

  • Separate your wallets. Keep long-term holdings in a "vault" wallet that rarely signs anything, and use a separate hot or "burner" wallet with limited funds for new apps, mints and airdrops.

  • Read every signature request. Look for words like "Permit", "approve", "setApprovalForAll", a spender address and an amount or deadline. If a "sign-in" message contains token amounts or spenders, stop.

  • Check the domain every time. Bookmark the apps you use and avoid links from ads and direct messages.

  • Review approvals regularly. Revoke.cash suggests keeping approvals to a minimum and revoking regularly, especially for new or unknown contracts.

  • Size your exposure. Treat on-chain risk like trading risk; our crypto risk management guide explains why no single mistake should be able to wipe you out.

Common mistakes

  • Believing that disconnecting a wallet from a site removes its access.

  • Assuming approvals expire after a while. They do not.

  • Signing "gasless" messages without reading them because "no transaction means no risk".

  • Revoking from a phishing "revoke" site you found through an ad or a direct message offering help.

  • Sending more funds to a wallet that already shows signs of a sweeper bot.

  • Forgetting other networks. Each approval applies to a single token on a single network, so check every chain you have used.

  • Revoking an approval that an active NFT listing needs, then wondering why the listing stopped working. Revoke.cash notes that active marketplace listings require the approval.

Risk and security notes

This guide is educational and is not financial or legal advice. Tools and wallet interfaces change, so always check the latest official documentation of the tool you use. No checker can see unused off-chain signatures, and none can reverse confirmed blockchain transactions. If you believe your wallet was drained, move remaining assets from any wallet you suspect is compromised to a new wallet with a new seed phrase, and be wary of "recovery services" that ask for payment or your seed phrase.

FAQ

Are token approvals dangerous by themselves?

No. They are a normal part of using DeFi and NFT marketplaces. The risk comes from approving malicious contracts, approving more than you need, and leaving old approvals active.

Should I revoke all my approvals?

ethereum.org says revoking all of them will not create problems, but you will need to approve again the next time you use those apps. Revoke.cash frames it as a trade-off between safety and convenience.

How much does it cost to revoke token approvals?

Each revoke is a normal transaction, so you pay the network's gas fee in its native coin. Fees vary by network and congestion.

Does revoking remove my tokens from staking or lending?

No. Your deposited or staked tokens stay where they are.

Can I see the Permit signatures I have signed?

Not before they are used. Off-chain signatures only appear as approvals after someone submits them on-chain.

Sources

Cover: A Ledger Nano S hardware wallet connected by USB (archive photo, used for illustration). Photo: Motokoka / Wikimedia Commons, CC BY-SA 4.0.

Share

See the signals and their results

Browse publicly logged signals and how they performed, or create a free account to follow them.

Token Approvals: How to Check and Revoke Wallet Permissions