v1

latestOpenAPI 3.0.02026-07-26541677.9 KB
Ethereum API

eth_getLogs

Returns logs matching the filter criteria

post/eth_getLogs

Request body

jsonrpcstring required

JSON-RPC version

methodstring required

The method to call

idinteger required

Request identifier

Response

Returns the matching logs

jsonrpcstring
idinteger

Example response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd",
      "topics": [
        "0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"
      ],
      "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
      "blockNumber": "0x1",
      "logIndex": "0x0"
    }
  ]
}