Base
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Base
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
eth_uninstallFilter removes a server-side filter from a Base node by its ID, freeing the resources that filter was holding. It works for every filter type the node tracks — log filters from eth_newFilter, block filters from eth_newBlockFilter, and pending-transaction filters from eth_newPendingTransactionFilter. Base is Coinbase's OP Stack optimistic rollup built on Ethereum with gas paid in ETH, and because its sequencer ships a block roughly every two seconds, active filters accumulate matches quickly; tearing one down once you no longer poll it keeps the node from buffering changes you will never read. Send the call to https://base.therpc.io/YOUR_API_KEY on chain ID 8453 (hex 0x2105).
| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 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 Base playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32602 | invalid argument | The filter ID is not a valid hex string. |
false return is not an error — it usually means the filter was already gone, having expired naturally before you called uninstall. Treat it as "nothing to remove," not a failure.eth_uninstallFilter explicitly when you are done is the cleaner practice and avoids relying on that timeout.参数
The hex filter ID to remove.