Optimism
Optimism
Optimism
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
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.
| # | Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
| 1 | filterId | string | Ja | The hex filter ID to remove. |
| Typ | Beschreibung |
|---|---|
| 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.
| Code | Meldung | Ursache |
|---|---|---|
-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.Parameter
The hex filter ID to remove.