This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Smart Account Batch Revoke-All-Approvals Tool

Security · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — nothing to install.
CategorySecurity
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

This tool enables smart account owners and security-conscious users to batch revoke all token approvals from their smart account in a single workflow. Token approvals allow third-party spenders to access your tokens, which is necessary for DeFi interactions but creates a security risk if left active after use. Revoking approvals sets the allowance to zero, preventing unauthorized token transfers. It connects to your wallet and reads the smart account address, token contract addresses, approved spender addresses, approval amounts, allowance status, current approvals list, revocation history, and timestamps. The tool signs and submits transactions to batch revoke token approvals, set allowances to zero, update approval status, record revocation metadata, and emit revocation events.

HOW TO USE

1. Connect your wallet using the wallet bridge (supports MetaMask, WalletConnect, and other EVM-compatible wallets).

2. Select the target network that matches your smart account deployment.

3. Enter the smart account address and click "load account" to verify the address.

4. Enter the token addresses (one per line) and corresponding spender addresses (one per line) you want to revoke approvals for.

5. Click "scan approvals" to check the current allowance for each token-spender pair and identify active approvals.

6. Click "validate revoke" to confirm which approvals are ready to be revoked.

7. Review the active approvals displayed — only approvals with allowance greater than zero will be revoked.

8. Click "revoke all approvals" to sign and submit the transactions that set all identified allowances to zero.

9. The tool processes revocations sequentially and reports success/failure for each approval.

10. The revocation history section shows your past revocations for audit purposes.

TECHNICAL MECHANISM

The tool uses ethers.js v5.7.2 to interact with ERC-20 token contracts' approve() and allowance() functions. It first performs a read-only scan of the current allowance for each token-spender pair using the allowance(address owner, address spender) view function. Only approvals with a positive allowance are flagged for revocation. The tool then executes approve(spender, 0) for each active approval sequentially (PLAYBOOK-C §5.6), ensuring each transaction is confirmed before the next one begins. Sequential processing prevents nonce conflicts and ensures reliable revocation. The tool supports batch scanning and sequential revocation, with progress reporting for each revocation attempt. Transaction costs are reported using receipt.effectiveGasPrice for accurate post-EIP-1559 accounting. Revocation metadata is recorded locally for audit purposes.

WHAT IT CANNOT SEE

This tool operates purely on-chain and cannot detect off-chain approvals — it only sees approvals recorded on-chain. It cannot identify all approved spenders — the tool can only check approvals for the token-spender pairs explicitly provided. It cannot ensure that all approvals are revoked — if new approvals are created after the scan, they will not be revoked. It cannot detect hidden approvals — approvals created through proxy contracts, delegate calls, or other indirect methods may not be visible through the standard allowance interface. The tool also cannot guarantee that approvals stay revoked — users or other authorized parties can re-approve spenders at any time. The tool relies on the user providing the correct token and spender addresses; it cannot discover approvals that the user is unaware of or has not listed.

PLEASE NOTE

This tool works exclusively with EVM-compatible blockchain networks (Ethereum, Polygon, Arbitrum, Optimism, Base, etc.). It requires the token contracts to implement the standard ERC-20 approve() and allowance() functions. All transactions incur gas fees paid by the connected wallet. The tool maintains no persistent storage — all state is refreshed from the blockchain on each session. Revoking approvals is a security best practice — regularly review and revoke unused approvals to reduce the risk of token loss. Always verify the spender addresses before revoking to ensure you're not accidentally revoking approvals you still need. For production use, consider combining this tool with regular security audits of your token approvals.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.