eth_uninstallFilter
Polygon API - 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_getFilterChangesfor a period

Parameters

  1. 1.
    QUANTITY - The filter id.
1
params: [
2
"0xfe704947a3cd3ca12541458a4321c869"
3
]
Copied!

Returns

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

Example

​Alchemy Composer​

The Alchemy Composer allows you to make a no-code example request via your browser. Try it out above!

Request

Curl
Postman
1
curl https://eth-mainnet.alchemyapi.io/v2/your-api-key \
2
-X POST \
3
-H "Content-Type: application/json" \
4
-d '{"jsonrpc":"2.0","method":"eth_uninstallFilter","params":["0xfe704947a3cd3ca12541458a4321c869"],"id":0}'
Copied!
1
URL: https://eth-mainnet.alchemyapi.io/v2/your-api-key
2
RequestType: POST
3
Body:
4
{
5
"jsonrpc":"2.0",
6
"method":"eth_uninstallFilter",
7
"params":["0xfe704947a3cd3ca12541458a4321c869"],
8
"id":0
9
}
Copied!

Result

1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": false
5
}
Copied!
Last modified 23d ago