Ethereum
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Ethereum
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
When you create a polling filter on Ethereum, the node holds state for it on your behalf. eth_uninstallFilter tears that state down. Pass the hex filter ID you got from eth_newFilter, eth_newBlockFilter, or eth_newPendingTransactionFilter, send it to https://ethereum.therpc.io/YOUR_API_KEY on mainnet (chain ID 1), and the node drops the filter and stops buffering matches for it. It works for every filter type, since they all share the same ID space. The return is a simple boolean: true when the filter existed and was removed, false when there was nothing there to remove. Cleaning up promptly matters because each open filter consumes memory on the node serving your ETH workload.
| # | Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| 1 | filterId | string | Sí | The hex filter ID to remove. |
| Tipo | Descripción |
|---|---|
| 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 Ethereum playground.
| Código | Mensaje | Causa |
|---|---|---|
-32602 | invalid argument | The filter ID is not a valid hex string. |
false back is not a failure. It usually just means the filter already expired before you reached it, so treat it as "nothing to do" rather than an error to retry.Parámetros
The hex filter ID to remove.