Polygon
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Polygon
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
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.| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | filterId | string | Sim | The hex filter ID to remove. |
| Tipo | Descrição |
|---|---|
| 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.
| Código | Mensagem | Causa |
|---|---|---|
-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.Parâmetros
The hex filter ID to remove.