curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_uninstallFilter",
"params": [
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
Uninstalls a filter with given id. Should always be called when watch is no longer needed. Additonally Filters timeout when they aren’t requested with eth_getFilterChanges for a period of time.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_uninstallFilter",
"params": [
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
eth_uninstallFilter:params[0]: The filter ID as a hex quantity (e.g., “0x16” for 22).true.curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_uninstallFilter",
"params": [
"0x1"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
Was this page helpful?