Avalanche
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.
Avalanche
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 an Avalanche C-Chain node by its ID, freeing the resources the node held to track it. It works for any filter type created with eth_newFilter, eth_newBlockFilter, or eth_newPendingTransactionFilter. Because each open filter keeps state on the node — buffering matches between your eth_getFilterChanges polls — uninstalling filters you no longer need keeps your usage lean on a chain as active as the C-Chain, where AVAX-settled DeFi traffic generates a steady stream of events. Send the request to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, 0xa86a) with the filter ID you want to drop.
| # | 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 Avalanche playground.
| Código | Mensagem | Causa |
|---|---|---|
-32602 | invalid argument | The filter ID is not a valid hex string. |
false return is not an error. It simply means the C-Chain node could not find that filter ID — typically because the filter already expired or was never created. Treat it as a no-op rather than a failure.eth_uninstallFilter is better practice than relying on timeout, especially for short-lived polling jobs.Parâmetros
The hex filter ID to remove.