Skip to main content
Crypto Readout

Crypto markets, protocols and policy

Why a Revoked Approval Stays Listed Until Indexing Catches Up

A blockchain indexer in crypto apps reads contract events and makes them searchable, so approval lists can update after the next indexing pass on-chain.

By Crypto Readout Editorial3 min read#d579e6

Why a Revoked Approval Stays Listed Until Indexing Catches Up

What does a blockchain indexer do in a crypto app? It reads blockchain events, stores them in a searchable database, and lets the app find activity such as a wallet’s token approvals. That matters because a token contract stores allowances in a mapping, which cannot be enumerated to produce a complete list of a wallet’s approvals.

When a wallet approves a spender, an ERC-20 token contract emits an Approval event with the owner, spender and allowance value. An indexer collects those events across blocks and records them so an app can search by wallet. The linked revokecash topic adds useful background on how approval management depends on finding those wallet-to-spender records.

Think of the contract as a filing cabinet with a drawer for each owner and spender: you can ask for one drawer’s current value, but you cannot ask the cabinet to print every drawer belonging to one owner. The event record gives an indexer entries to collect and search.

Why can a revoked approval still appear in the app?

A revoked approval can remain visible until the app’s indexer processes the block containing the revoke. When a revoke transaction confirms, the contract’s allowance changes, often to zero. The confirmation means the transaction is on-chain; the app’s searchable records may take additional time to catch up.

Say you revoke a spender’s allowance in revokecash. The transaction confirms, but its approval row still appears because the indexer has not yet included that block in its data. After indexing catches up, refresh the app and the row should reflect the updated state.

This is where an indexer differs from an RPC node. An RPC node answers a specific question, such as the current allowance for one owner and spender. An indexer gathers events across blocks, making it possible to search for a wallet’s broader approval history. The Graph is a protocol for indexing blockchain data; Etherscan is an explorer that also presents searchable chain information.

Approval checkers can disagree briefly because they may rely on separate indexes, each processing blocks on its own schedule. One tool may have recorded the revoke while another still shows its earlier data. If the confirmed transaction is recent, refresh after the indexer updates before treating the old row as the current allowance.

When a revoke looks unfinished, check that its transaction is confirmed, then refresh the approval view after the indexer has had time to catch up.

Blockchain indexer questions

How long does an indexer take to catch up after a transaction?

It depends on the chain and the indexer’s processing state. The transaction can be confirmed before its block appears in an app’s indexed data, so check again after a short wait or refresh later.

What happens to indexed data during a chain reorganization?

If a chain reorganization replaces blocks, an indexer needs to update records based on the revised chain. An event from a removed block may no longer belong in the indexed results.

Can I check an allowance directly on the chain without an indexer?

Yes. An RPC node can query the allowance for a specific token, owner and spender. That checks a known pair; it does not enumerate every spender approved by a wallet.

Why do two approval tools show different lists for the same wallet?

They may use different indexes, which can process recent blocks at different times or handle indexed data differently. A recent revoke may appear in one tool before the other.