Base
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Base
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
eth_uninstallFilter removes a server-side filter from a Base node by its ID, freeing the resources that filter was holding. It works for every filter type the node tracks — log filters from eth_newFilter, block filters from eth_newBlockFilter, and pending-transaction filters from eth_newPendingTransactionFilter. Base is Coinbase's OP Stack optimistic rollup built on Ethereum with gas paid in ETH, and because its sequencer ships a block roughly every two seconds, active filters accumulate matches quickly; tearing one down once you no longer poll it keeps the node from buffering changes you will never read. Send the call to https://base.therpc.io/YOUR_API_KEY on chain ID 8453 (hex 0x2105).
| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | filterId | string | Sim | The hex filter ID to remove. |
| Tipo | Descrição |
|---|---|
| boolean | `true` if the filter was found and removed. `false` if it did not exist (already expired or never created). |
Try it live in the Base playground.
| Código | Mensagem | Causa |
|---|---|---|
-32602 | invalid argument | The filter ID is not a valid hex string. |
false return is not an error — it usually means the filter was already gone, having expired naturally before you called uninstall. Treat it as "nothing to remove," not a failure.eth_uninstallFilter explicitly when you are done is the cleaner practice and avoids relying on that timeout.Parâmetros
The hex filter ID to remove.