After a swap leaves a contract with spending permission, revokecash uses your address and chain to find past approval events, checks which permissions are still active, and prepares a zero or false transaction that removes the chosen permission once your wallet signs it and the transaction is mined.
-
Result: You can identify an active approval and verify that a revocation changed it.
-
For lookup: Have the wallet address and chain ready, because approvals belong to an address on a particular chain.
-
For revocation: Use the wallet that owns the address, because changing its permission requires a signed transaction.
An Address Lookup Finds Past Approvals
An address lookup gives Revoke.cash a wallet address and a chain to search for approval activity. The same address can have different permissions on Ethereum, Base, and Polygon, so the chain you choose determines which contract state you are examining. Lookup reads public blockchain data; nothing needs to be signed at this stage.
The search starts with event logs. Under EIP-20, an ERC-20 token emits an Approval event when an owner approves a spender for an amount. Under EIP-721, an NFT contract defines Approval for a single token and ApprovalForAll for an operator allowed to manage an owner’s collection. Indexing those events finds the spender and operator addresses that have appeared in the address’s approval history.
That history supplies candidates for a live check. A past Approval event proves that permission was granted at that time; it does not say how much permission remains now. This distinction matters before you decide which entry needs action.
The Live Allowance Determines What Is Still Active
Revoke.cash checks the token contract’s current state to distinguish active permissions from historical ones. For an ERC-20 candidate, allowance(owner, spender) returns the amount the spender is still allowed to withdraw. A positive result identifies a remaining allowance; zero means that ERC-20 permission is no longer active. For an ERC-721 collection operator, isApprovedForAll(owner, operator) supplies the current true or false answer.
Take an ERC-20 approval for 100 units. Its Approval event records 100. If the spender later uses transferFrom to move 35 units, the remaining allowance may become 65. EIP-20 requires a Transfer event for that move, but does not require a new Approval event recording 65. Reading only the last Approval amount would therefore show a stale number. The live allowance() result is the one that matters.
The same principle applies when a permission has already been cleared: old approval events remain in the chain’s history, while a live read can show zero or false. Token implementations can also handle very large allowances differently as they are spent. Rather than calculate a remainder from logs, use the contract’s current answer for the selected owner and spender.
At this point, revokecash helps you inspect the permissions that remain active. Seeing their current state also helps you decide when to revoke token approvals for a spender you no longer need.
Revocation Requires a Mined Transaction
Revocation changes the permission stored in the token or NFT contract, so your wallet must sign a transaction to change that contract state. For an ERC-20 allowance, clicking Revoke prepares approve(spender, 0) on the token contract. For an ERC-721 collection-wide operator approval, the corresponding call is setApprovalForAll(operator, false) on the NFT contract.
The target is the asset contract whose permission you are changing, even though the permission names a separate spender or operator. Before signing, match that asset, the spender, your address, and the chain to the approval you meant to remove. An individual ERC-721 token approval is a separate kind of permission: its contract uses approve(zero address, tokenId) to clear the approved address for that token.
Signing authorizes the transaction; submission leaves it pending. The old permission remains the contract’s state until a successful transaction is mined. A pending transaction or a wallet’s signature alone cannot establish that revocation is complete.
What Does a Confirmed Revocation Look Like?
A completed revokecash attempt has a successful transaction followed by a fresh live read showing zero or false for the same permission. Consider an ERC-20 allowance on Base:
-
You look up your address on Base. The approval history identifies a swap contract as a past spender; its current permission is still unknown.
-
The live allowance read returns 65 units. That is the active amount, even if the last Approval event recorded 100.
-
You choose Revoke and sign approve(spender, 0). The transaction is pending, and the allowance has not yet been confirmed as changed.
-
The transaction succeeds onchain. A fresh allowance(owner, spender) read returns zero; that spender can no longer use this allowance to transfer your tokens.
The successful transaction is what makes the final check meaningful. Wait for its confirmed success, then read the permission again on the same chain with the same owner, asset, and spender. For an ERC-721 collection operator, the equivalent final state is isApprovedForAll(owner, operator) returning false. Those live results show what the contract will enforce when the spender next tries to transfer assets under the revoked permission.