eth_getFilterChanges

Polling method for a filter, which returns an array of logs which occurred since last poll.

Parameters

Filter ID - Generated after calling eth_newBlockFilter, eth_newFilter, or eth_newPendingTransactionFilter.

Sample Request

curl https://lb.nodies.app/v1/<INSERT URL> \
   -H "x-api-key: <API-KEY>" \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{
  "jsonrpc": "2.0",
  "method": "eth_getFilterChanges",
  "params": [
    "0x19b7795c8ddceb0cc03bb2b4abcd7fe"
  ],
  "id": 1
}'

Sample Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "0x92ee0455bdef0f94c3ff2b8eabdf6c550e30a8be0e959803fb35c13b8be581f2",
    "0x790bb38be663e453d6cbb865367159cdc52e0b7d9dba0794d36caebf13ccba0a",
    "0xf2d2afdf66e0b95d6ad8230ed4dd7a17a010021643c1812b1b099d620edc9548",
    "0x299ec7579ec9cb218f5385c73d9f35f62797fdbd6b4fa7aa0a4e5f1c1d0d0950",
    "0xbf60d630acb8d66ff37524c25c24c870098d99f59337b27db11b9503108ce7e7",
    "0x1db123e2d301d67b0c0b8fe133515c450d131d2e5c72100366591a7d73ff50c6"
  ]
}

Last updated