Purpose
This article explains how to revoke an Ethereum Wallet Allowance or Token Approval and remove a dApp's access to interact with a user token on their wallet.
Assumptions Made
This article assumes the reader understands the information in the following articles:
What is a Wallet?
Smart Contracts
Wallet Allowances
Procedure
Wallet Allowance also known as Token approvals is required when interacting with the Gala Platform or other dApps to perform actions such as purchasing an NFT or using NFTs in game.
Revoking Wallet Allowance is a common security practice to secure user's assets as most dApps usually ask for unlimited access to a user's token balance. In most cases, the reasons why users revoke their allowance are the following:
- A user secures their wallet to ensure a dApp can't access their wallet or token.
- A user no longer intends to connect to the dApp.
- A user is unable to interact with a dApp due to an existing token approval.
There are various tools available to revoke a wallet allowance such as Revoke.cash or Etherscan.io. In this example, we're going to use Revoke to check and revoke an allowance.
Note: Revoke.cash and Etherscan.io are third-party applications, and their usage is at your own risk.
In Revoke.cash, press Connect Wallet to interact with the app and select a wallet to use.
In this example, we will use MetaMask. Press Connect.
After connecting to the app, users will see a list of allowances of the smart contract or dApp they interacted. The example shows the user used the Gala Games, Gala Music, and Opensea Platform and approved an allowance.
To revoke an allowance, users must select an allowance they wish to remove access to their token and then press Revoke.
A prompt will appear confirming the user's action. Press Confirm.
Note: Users will be required to pay a gas fee to approve the transaction. To learn more about Gas fee, please visit the article: What is "Gas" and How Does it Work?
Once the user presses Confirm, a pop-up message will appear stating that the Transaction submitted, the app shows the allowance is getting revoked, and it disappears from the list.