Optimism
Optimism
Optimism
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
eth_uninstallFilter removes a server-side filter by its hex ID on OP Mainnet, the OP Stack rollup that settles to Ethereum L1 and uses ETH for gas. Filters created with eth_newFilter, eth_newBlockFilter, or eth_newPendingTransactionFilter hold state on the node; this method tears that state down and frees the associated resources, and it works for all three filter types. Send the call to https://optimism.therpc.io/YOUR_API_KEY (chain ID 10, 0xa). It returns true when the filter existed and was removed, or false if the ID was already gone.
| # | 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 Optimism playground.
| Código | Mensaje | Causa |
|---|---|---|
-32602 | invalid argument | The filter ID is not a valid hex string. |
false return is not an error — the filter may have already expired on its own, so treat false as "nothing left to remove" rather than a failure.Parámetros
The hex filter ID to remove.