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"]}'

响应示例

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": true
}
参数与您的端点

参数

filterIdstring必填
ID returned by eth_newFilter or eth_newBlockFilter.

返回值

boolean true if the filter existed and was removed.

适用场景

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

如何解读结果

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

提示

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

相关方法