klay_uninstallFilter

Uninstalls a filter with given id. Should always be called when watch is no longer needed.

The execution of this API can be limited by two node configurations to manage resources of Klaytn node safely.

Parameters

NameTypeDescription

filter

QUANTITY

A filter id.

Return Value

TypeDescription

Boolean

true if the filter was successfully uninstalled, otherwise false.

Example

// Request
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"klay_uninstallFilter","params":["0xb"],"id":73}' http://klaytn.blockpi.network/v1/rpc/your-api-key

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

Last updated