Polygon
Ready to call this in production?
Free tier covers personal projects. Pay-as-you-go scales without a card.
Polygon
Free tier covers personal projects. Pay-as-you-go scales without a card.
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.| # | Name | Type | Required | Description |
|---|---|---|---|---|
| 1 | filterId | string | Yes | The hex filter ID to remove. |
| Type | Description |
|---|---|
| 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.
| Code | Message | Cause |
|---|---|---|
-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.Parameters
The hex filter ID to remove.