Comment on page

uninstallFilter

Uninstalls a filter with given ID. Should always be called when watching is no longer needed. Additionally filters time out when they aren't requested with eth_getFilterChanges for a period of time.

EXAMPLE

## JSON-RPC over HTTPS POST
curl https://mainnet-slice-rpc.com \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_uninstallFilter","params":["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"],"id":1}'
## JSON-RPC over WSS
wscat -c ws://mainnet-slice-rpc.com
>{"jsonrpc":"2.0","method":"eth_uninstallFilter","params":["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"],"id":1}

RESPONSE

RESULT FIELDS

  • UNINSTALLED FLAG - true if the filter was successfully uninstalled, otherwise false.

BODY

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