Skip to content

feat: Implement eth_uninstallFilter #192

Description

@Boreas09

Uninstalls a filter with given ID. This method should always be called when watching is no longer needed. Additionally, filters time out when they aren't requested with eth_getFilterChanges for a period of time.

Parameters :

filter ID: A string denoting the ID of the filter to be uninstalled.

Returns :

uninstalled flag: (boolean) true if the filter was successfully uninstalled, otherwise false.

Request :

curl https://mainnet.infura.io/v3/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_uninstallFilter","params":["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"],"id":1}'

Response :

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

DO NOT FORGET TO UPDATE methodsStatus.md (set this method as finished)

/rosettanet/docs/methodsStatus.md

methodsStatus.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions