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

Sample Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "0x57431fe118553ec08bb88b33761b72bf37f257503bb9d265d43f6ebd7eced5e7",
    "0xb5be10f11b99055f1cca8ac53fcfca3d4f2c6fa03ef36e7da70a40c8d60b269e",
    "0xa5221b70ddd00f7148af4ffd4f245b4e5948406866b79ceffab5e3eaa3c09fe9",
    "0xd9b0de74c1b1b11ac96972692946e71113b6ff662820c9cf5c5b8b85316cb0d4",
    "0x5e76bce592fa53ab1c63c5156836582735485d6c5110dfac6c0ed769583bcb40",
    "0xfa1f97de5c98ed4325e9f29d2105b873143d6521041af914582e03632f7877db",
    "0x7927859e70555204c6b01c674840739371e496496730068529eefd64e4383191",
    "0xceaaf2d2a50352ce5f0b42d2dee3ad76075f32bb739fc25d2f922e65ae99a52c",
    "0xab87464288473de7cd18e903117706c030353611ddecbfc27addbfe5ae0cfaa3",
    "0x1a1b81a97bf0fa780a6bc600433d69fa26ef29da36fd4bf9caffb361960c78a4",
    "0x5bfb29517534711ee85fbb0118626a3fb6aae54f3f97b7d0d11a7ea251f24435"
  ]
}

Last updated