Avalanche
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Avalanche
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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.
| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | filterId | string | Oui | The hex filter ID to remove. |
| Type | Description |
|---|---|
| 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.
| Code | Message | Cause |
|---|---|---|
-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.Paramètres
The hex filter ID to remove.