eth_uninstallFilter

Uninstalls a filter with given id. Should always be called when watch is no longer needed. Additionally Filters timeout when they aren't requested with eth_getFilterChanges for a period of time.

Ethereum.org API Reference

Parameters

QUANTITY - The filter id.

Returns

Boolean - true if the filter was successfully uninstalled, otherwise false.

Example

Request

curl --request POST \
     --url https://endpoints.omniatech.io/v1/RPC_ENDPOINT \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "params": [
    "0x1"
  ],
  "method": "eth_uninstallFilter"
}
'

Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": false
}

Last updated