Digine-Labs / rosettanet

Ethereum <> Starknet RPC middleware.
MIT License
34 stars 26 forks source link

feat: Implement eth_uninstallFilter #192

Open Boreas09 opened 2 months ago

Boreas09 commented 2 months ago

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

ooochoche commented 2 months ago

@Boreas09 I can handle this

Boreas09 commented 2 months ago

Check apibara for filter methods