POST
/
eth_getLogs
curl --request POST \
  --url https://api.mainnet.abs.xyz/eth_getLogs \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getLogs",
  "params": [
    {
      "fromBlock": "0x1",
      "toBlock": "0x2",
      "address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd",
      "topics": [
        "0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"
      ]
    }
  ]
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd",
      "topics": [
        "0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"
      ],
      "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
      "blockNumber": "0x1",
      "logIndex": "0x0"
    }
  ]
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:eth_getLogs
required

The method to call

params
any[]
required

Filter options

id
integer
default:1
required

Request identifier

Response

200 - application/json
Returns the matching logs
jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
object[]

Array of log objects