eth_uninstallfilter - Worldchain

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

Uninstalls a filter with given id on the World Chain network. Should always be called when watch is no longer needed.

Parameters

Parameter
Type
Description

filterId

string

Filter ID to uninstall

Request

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "eth_uninstallFilter",
    "params": ["0x1"],
    "id": "getblock.io"
}'

Response

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

Response Parameters

Field
Type
Description

result

boolean

True if filter was successfully uninstalled, false otherwise

Use Case

The eth_uninstallFilter method on World Chain is typically used for:

  • Filter cleanup

  • Resource management

  • Subscription cancellation

  • Memory optimization

Error Handling

Status Code
Error Message
Cause

403

Forbidden

Missing or invalid ACCESS-TOKEN

Web3 Integration

Last updated

Was this helpful?