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 or eth_newFilter.

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": [
    "0xb304000000000000c44eb17e0cf10538"
  ],
  "id": 1
}'

Sample Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "0xf4c7e5c2eaf7aac4bc64156c1db2312a2c732fa5ea95a880e4d279e90ce6ccca",
    "0xa31daf08a465c8de128bbd9f39f1f1c4eaed5599eb2edaf9a94649c459bf3aed",
    "0x9a5c01965ed18d25a648e90462765a4fa233c8565873a0fca31d8894b2c05d29",
    "0x6790ef431bd036e14582fa58747a1a9d15d35434f58ac62723a033d6dd2a5454",
    "0xdb7e222308efc5e3b02bb22c24deeb34d3c826a9f1fe5b9cba589af9e5fba92b",
    "0xaf621060584cb17287f7c3d0581ff1f242e6ff8b9c7b4724d8414c86a7b8e14f"
  ]
}

Last updated