Granite Upgrade Activates in12d:17h:00m:52s
Eth

eth_getLogs

Returns logs matching the given filter object.

POST
/ext/bc/C/rpc#eth_getLogs

JSON-RPC request

jsonrpcstring
methodstring
params

[filterObject]

Items1 <= items <= 1
idinteger

Response Body

application/json

application/json

curl -X POST "https://api.avax.network/ext/bc/C/rpc#eth_getLogs" \  -H "Content-Type: application/json" \  -d '{    "jsonrpc": "2.0",    "method": "eth_getLogs",    "params": [      {        "fromBlock": "0x1",        "toBlock": "latest",        "address": "0x87ac99835e67168d4f9a40580f8f5c33550ba88b",        "topics": [          "0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"        ]      }    ],    "id": 1  }'
{
  "jsonrpc": "2.0",
  "result": null,
  "error": {
    "code": 0,
    "message": "string",
    "data": null
  },
  "id": 1
}
{
  "jsonrpc": "2.0",
  "error": {
    "code": 0,
    "message": "string",
    "data": null
  },
  "id": 1
}

Is this guide helpful?