Web3 & MetaMask - Bubble plugin
Get PluginAll our plugins
  • Overview
  • Quick Start Example
  • Elements details
    • Web3 & MetaMask
      • Connect To MetaMask
      • Disconnect MetaMask
      • Send token With MetaMask
      • Get Balance of a Token
      • Get Balance of Multiple Tokens
      • Get Token Symbol
      • Sign
      • Check signature
      • Sign Typed Data
      • Check signature-Typed Data
      • Smart Contract - Read
        • Example - CAKE/BUSD rate on Pancaksewap
      • Smart Contract - Write
        • Example - Write a function
      • Trigger Switch Chain
      • Approve - Set Allowance
      • Revoke Allowance
      • Deploy Contract
      • Add Chain to MetaMask
      • Get NFT Metadata
      • Check NFT Balance
      • Smart Contract - Read
      • Smart Contract - Write
    • Web3 Utils
      • Get Transaction confirmations
      • Get Transaction Details
      • To Wei
      • From Wei
      • Add Token to MetaMask
      • Get ENS data
      • Get ENS Domain from Address
  • Use with other Wallets & Plugins
  • Sign up a user with signature
  • How to use on Mobile
Powered by GitBook
On this page
  • Parameters
  • Events
  1. Elements details
  2. Web3 & MetaMask

Revoke Allowance

PreviousApprove - Set AllowanceNextDeploy Contract

Last updated 2 years ago

When using dapps like Uniswap, OpenSea or a custom smart contract, you have to grant them permission to spend your tokens and NFTs, for example if you want to execute a swap function. This is called an allowance. If you don't revoke these allowances, the dapp can spend your tokens forever. Take back control by revoking your allowances.

Parameters

Parameter name
Type
Description

Token contract

Text

Token that was used to be approved, for example USDC or an NFT contract

Spender

Text

Smart Contract address that the allowance was given to, for example the router contract from Uniswap. It also can be another user Wallet Address, because it is possible to give allowance to a wallet address as-well.

Gas Parameters

Number

The gas parameters are optional, use it only if you know what you are doing and you really need it.

Events

Event name
Description

Revoked

Triggered when the allowance was successfully revoked

Additionally, see for tx hash or error event.

common events and states