eth_getFilterLogs

Returns an array of all logs matching filter with given id.

Parameters

Filter ID - Generated after calling 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_getFilterLogs",
  "params": [
    "0xb807ac9883a863c18933de520fcfb5e8"
  ],
  "id": 1
}'

Sample Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "address": "0x361af767ae28fe931bf7173675b15eb071743b61",
      "topics": [
        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
        "0x0000000000000000000000000000000000000000000000000000000000000000",
        "0x0000000000000000000000005a9d68c871325979b16dab50acff1f9ebfa9ab3f"
      ],
      "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
      "blockNumber": "0x6eca6c",
      "transactionHash": "0xaa7d00ce29c74edced4968f04b8700447668fd14c40a1ce39dc4d28ef63c12b0",
      "transactionIndex": "0x2",
      "blockHash": "0x5903c7fb456a7acf2a71bc4c9057cd4ba83b67734f31dd91c83fa6ad772a8826",
      "logIndex": "0x3",
      "removed": false
    }
  ]
}

Last updated