githubEdit

eth_uninstallFilter - Celo

Example code for the eth_uninstallFilter JSON-RPC method. Complete guide on how to use eth_uninstallFilter JSON-RPC in GetBlock Web3 documentation.

This method removes a filter created by eth_newFilter or eth_newBlockFilter on the Celo network. Call this method when a filter is no longer needed.

Parameters

Parameter
Type
Required
Description

filterId

string

Yes

Filter ID to remove

Request Example

cURL
curl -X POST https://go.getblock.io/<ACCESS-TOKEN>/ \
-H "Content-Type: application/json" \
-d '{
  "jsonrpc": "2.0",
  "id": "getblock.io",
  "method": "eth_uninstallFilter",
  "params": ["0x1"]
}'

Response Example

Response
{
  "jsonrpc": "2.0",
  "id": "getblock.io",
  "result": true
}

Response Definition

Field
Type
Description

result

boolean

true if filter was removed

Use Cases:

  • Clean up unused filters

  • Free up server resources

  • Proper filter lifecycle management

Error handling

Error Code
Description

-32602

Invalid filter ID

-32603

Internal error

Last updated

Was this helpful?