L0vdL0vd

eth_uninstallFilter

Removes a filter. Call it when you stop polling so the node can free it.

curl https://eth.l0vdinfra.com/YOUR_KEY \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1,"method":"eth_uninstallFilter","params":["0x03000000000000007c9413727849684b"]}'

Example response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": true
}
Params and your endpoint

Parameters

filterIdstringrequired
ID returned by eth_newFilter or eth_newBlockFilter.

Returns

boolean true if the filter existed and was removed.

When to use it

Remove a filter you no longer poll so the node frees it.

How to read the result

true if the filter existed; false if it had already expired.

Tips

  • Safe to call on shutdown even if you are not sure the filter still exists.

Related methods