open_approvals
Audit a wallet for active ERC-20 approvals by checking current on-chain allowance, identifying which token-spender permissions are still open, revoked, or not applicable.
Instructions
Which doors into this wallet are still open? An ERC-20 approval is a standing permission to move your tokens without asking again, and it is the most common drain vector that does NOT need the private key: approved once for an unlimited amount, months ago, forgotten. Wallets do not surface these. The load-bearing discipline is that an Approval EVENT IS NOT THE CURRENT STATE — a later approval of zero revokes an earlier one silently — so the log supplies candidate (token, spender) pairs and every one is confirmed by calling allowance() on the chain right now. Four outcomes, never two: live, confirmed-revoked, not-applicable (the call reverted, which is a definitive answer), and COULD-NOT-CHECK. The first draft collapsed the last two and reported forty closed doors having verified nine; an unanswered call is not a closed door. Read-only — it tells you what to revoke, and can never revoke or sign.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | base (default) | ethereum | |
| owner | Yes | the wallet address to audit |