This article explains how to revoke token approvals on your crypto wallet. This may apply to you if:
- You recently interacted with Dapp with a vulnerability.
- You don't intend to use a Dapp again or in the near future.
- You don't plan on buying, selling, or transferring an NFT.
What are token approvals?
Token approvals are permissions granted to decentralized apps (Dapps) to access tokens in your crypto wallet. Token approvals are applicable to ERC-20 tokens like ETH, WETH, and USDC - as well as NFTs (ERC-721 and ERC-1155). You can think of a token allowance as giving a Dapp the permission to perform an action with your tokens.
All Dapps require permission from non-custodial crypto wallets (like MetaMask) before they can interact with any tokens in the wallet. You also grant token allowances to OpenSea to be able to take certain actions using our service, like listing an NFT for sale.
With regards to NFTs, revoking token allowances means an NFT cannot be bought, sold, or transferred using OpenSea's services without first approving the allowance. Please note that revoking and approving any token allowance on Ethereum both require a gas fee.
How can I manage and revoke token approvals?
There are a number of tools that allow you to revoke token approvals entirely. There are many third-party tools that allow you to manage this. For this tutorial, we'll be using Etherscan's Token Approval tool. Keep in mind that these are third parties and we cannot make any guarantees about their service. Please note, revoking token approval will result in a gas fee.
- Head to https://etherscan.io/tokenapprovalchecker.
- Press Connect to Web3 to connect your wallet.
- Navigate through the ERC-20, ERC-721, or ERC-1155 tabs until you see the token approval you would like to revoke.
- Press Revoke to revoke the token approval. This will prompt a signature request in your wallet.
- Once the transaction has been completed, the token approval will be revoked.
Managing ERC-20 token allowances
Moving forward, you can also manage your ERC-20 token allowances each time you interact with a Dapp or take certain actions on OpenSea. If you are using MetaMask, we recommend you avoid unlimited spend limits when approving transactions on Dapps.
To do so, click Edit Permission and enter your desired amount in Custom Spend Limit. By default, most Dapps ask for an unlimited spend limit. By limiting the spending limit, you reduce the risk of having your ERC-20 funds drained by a malicious actor.