Optimism
Optimism
Optimism
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
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.
| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | filterId | string | نعم | The hex filter ID to remove. |
| النوع | الوصف |
|---|---|
| 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.
| الكود | الرسالة | السبب |
|---|---|---|
-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.المعاملات
The hex filter ID to remove.