Skip to main content
GET
/
api
/
v1
/
customer
/
{chain}
/
blocks
/
traces
Get Block Traces
curl --request GET \
  --url https://api-gateway.sonarx.com/api/v1/customer/{chain}/blocks/traces \
  --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,
      "trace_address": "0.0.0.0",
      "transaction_from": "0x17fc3813d8761eab20e8d16ba7d38b92547dec91",
      "transaction_to": "0x4eb48fecfb61873809270972f7d9d5a90c23752d",
      "transaction_status": false,
      "call_type": "delegatecall",
      "from_address": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
      "to_address": "0x235ae97b28466db30469b89a9fe4cff0659f82cb",
      "gas": 168760,
      "gas_used": 16263,
      "gas_refund": 152497,
      "value": "0",
      "subtraces": 0,
      "type": "call",
      "input": "0xa9059cbb0000000000000000000000004eb48fecfb61873809270972f7d9d5a90c23752d000000000000000000000000000000000000000000000000000000000a6751f4",
      "output": "0x0000000000000000000000000000000000000000000000000000000000000001",
      "error": null,
      "function_signature": "0xa9059cbb",
      "version": 0
    }
  ],
  "count": 1
}
Polygon Data Availability: Polygon traces are only available from January 2025 onwards.

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

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 traces

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