Skip to main content
GET
/
api
/
v1
/
customer
/
{chain}
/
blocks
/
logs
Get Block Logs
curl --request GET \
  --url https://api-gateway.sonarx.com/api/v1/customer/{chain}/blocks/logs \
  --header 'apikey: <api-key>'
{
  "block_number": 81901165,
  "offset": 0,
  "limit": 10,
  "result": [
    {
      "block_number": 81901165,
      "timestamp": 1768922302,
      "datetime": "2026-01-20T15:18:22",
      "transaction_hash": "0x6a9cb0071fe44d7cf50962bc9ea05dfe45662d34c71f4f8b12fb3918f62f9692",
      "transaction_index": 0,
      "transaction_from": "0x17fc3813d8761eab20e8d16ba7d38b92547dec91",
      "transaction_to": "0x4eb48fecfb61873809270972f7d9d5a90c23752d",
      "log_index": 0,
      "address": "0x0000000000000000000000000000000000001010",
      "data": "0x00000000000000000000000000000000000000000000000001157946f3885900",
      "topics": [
        "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63",
        "0x0000000000000000000000000000000000000000000000000000000000001010",
        "0x00000000000000000000000017fc3813d8761eab20e8d16ba7d38b92547dec91",
        "0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"
      ],
      "topic1": "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63",
      "topic2": "0x0000000000000000000000000000000000000000000000000000000000001010",
      "topic3": "0x00000000000000000000000017fc3813d8761eab20e8d16ba7d38b92547dec91",
      "topic4": "0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0",
      "version": 0
    }
  ],
  "count": 1
}

Authorizations

apikey
string
header
required

API key for authentication

Path Parameters

chain
enum<string>
required

The blockchain network to query

Available options:
polygon
Example:

"polygon"

Query Parameters

block_number
integer
required

Block number to query (>= 0)

Required range: x >= 0
Example:

81901165

address
string

Filter by contract address (42 character hex string)

Example:

"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359"

limit
integer
default:10

Maximum number of results (1-50)

Required range: 1 <= x <= 50
offset
integer
default:0

Number of results to skip for pagination

Required range: x >= 0

Response

Block logs

block_number
integer
offset
integer
limit
integer
result
object[]
count
integer