The script is designed to quickly and multiple revoke permissions for contracts.
Supported networks: Ethereum, Bsc, Avalanche, Polygon, Arbitrum, Optimism
Requires python 3.10 or higher to run normally
- Download script
- Install python 3.10 or higher
- Open the folder with the script in any convenient IDE or terminal
- Create a virtual environment
python -m venv .venv
- Activate the virtual environment (on Windows)
source .venv/Scripts/activate
- Activate the virtual environment (on Linux/Mac)
source .venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Place private keys in private_keys.txt file (each private on a new line)
- Start
python main.py
If you need to revoke the approval of a custom token or a token in a custom network that is not present in the config.py, you can add them yourself by adding the TOKENS and NEED_REVOKE_CONTRACTS arrays with the necessary contracts.
EVM: 0x303d720CA67C3DC1108576471F9fbC7cBE5B4DB6