Skip to content

Lightweight tool to manage your approvals for ERC-20, ERC-721 and ERC-1155 token contracts

License

Notifications You must be signed in to change notification settings

bokkypoobah/ApprovalTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApprovalTool

A lightweigh web3 dapp tool to manage your approvals for ERC-20, ERC-721 and ERC-1155 token contracts on Ethereum-Virtual-Machine compatible chains.

URL: https://bokkypoobah.github.io/ApprovalTool/



How This Works

  • This tool scans for ERC-20, ERC-721 and ERC-1155 Approval and ApprovalForAll log events from the owner's account. This is done using the getLogs(filter) web3 call.
  • These event logs are then processed to determine the approval states for the various ERC-20, ERC-721 and ERC-1155 contracts
  • The latest ERC-20 approval amounts are retrieved using the ERC-20 allowance(...) function


Requirements

  • This dapp runs in web3 enabled desktop browsers connected to the Ethereum mainnet, and should work with other Ethereum-Virtual-Machine compatible chains


References



Running Locally



Design

  • This dapp is designed to have minimal external dependencies - all code is statically served from GitHub
  • No backend servers are necessary, only a web3 connection
  • This dapp uses basic web3 calls for compatibility across EVM chains using the same ERC-20, ERC-721 and ERC-1155 standards


Warning

  • This is experimental unaudited software. Please check your transaction data carefully when updating your approvals!


Sample Screens

Sample Approvals Screen - Attached Account

Sample Events Screen - Attached Account

Sample Accounts Screen - Attached Account

Sample Events Screen - Specified Accounts

Sample ERC-20 Approval Screen

Sample ERC-721 Approval Screen

Sample ERC-721 ApprovalForAll Screen

Sample ERC-1155 ApprovalForAll Screen



Enjoy!

(c) BokkyPooBah / Bok Consulting Pty Ltd 2023. The MIT Licence.