Polygon
Polygon
Polygon
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
eth_uninstallFilter removes a server-side filter you previously created on a Polygon PoS node — whether a log filter, a block filter, or a pending-transaction filter — and frees the resources the node was holding to track it. Each filter consumes memory and is polled with eth_getFilterChanges; calling this method when you are done is the clean way to release that state. On a busy MATIC-fee network where many integrations watch contract logs, releasing idle filters keeps your node footprint small. Send the request to the Polygon mainnet endpoint at https://polygon.therpc.io/YOUR_API_KEY (chain ID 137, 0x89).
0xc2132D05D31c914a87C6611C10748AEb04B58e8F — to release node resources.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 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 Polygon playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32602 | invalid argument | The filter ID is not a valid hex string. |
false return is not an error — it just means the filter ID was not found, usually because it had already expired naturally. Treat it as a no-op rather than a failure.eth_getFilterChanges polling), but relying on that timeout is fragile; calling eth_uninstallFilter explicitly when you are done is the better practice.参数
The hex filter ID to remove.