Avalanche
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Avalanche
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
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.
| # | Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| 1 | filterId | string | Sí | The hex filter ID to remove. |
| Tipo | Descripción |
|---|---|
| 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 | Mensaje | 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.