Skip to main content
GET
/
api
/
v1
/
customer
/
{chain}
/
transactions
/
{tx_hash}
/
logs
Get Transaction Logs
curl --request GET \
  --url https://api-gateway.sonarx.com/api/v1/customer/{chain}/transactions/{tx_hash}/logs \
  --header 'apikey: <api-key>'
{
  "transaction_hash": "0x0063079708b5fab44762765a01c17ab2754ebc15cb9ecd0e14fcbbd520452c27",
  "offset": 0,
  "limit": 10,
  "result": [
    {
      "block_number": 81911103,
      "timestamp": 1768942178,
      "datetime": "2026-01-20T20:49:38",
      "transaction_hash": "0x0063079708b5fab44762765a01c17ab2754ebc15cb9ecd0e14fcbbd520452c27",
      "transaction_index": 80,
      "transaction_from": "0xb63c1246a11edc1e784c39ab95295e4180c5071b",
      "transaction_to": "0x9ead30c8518a19f0b493eea1bd5af8fcc5fd4ba2",
      "log_index": 551,
      "address": "0x0000000000000000000000000000000000001010",
      "data": "0x000000000000000000000000000000000000000000000000000000174876e80000000000000000000000000000000000000000000000000000000c67112d1f4c00000000000000000000000000000000000000000000000137a7592d6717ce5800000000000000000000000000000000000000000000000000000c4fc8b6374c00000000000000000000000000000000000000000000000137a75944af8eb658",
      "topics": [
        "0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
        "0x0000000000000000000000000000000000000000000000000000000000001010",
        "0x000000000000000000000000b63c1246a11edc1e784c39ab95295e4180c5071b",
        "0x0000000000000000000000009ead30c8518a19f0b493eea1bd5af8fcc5fd4ba2"
      ],
      "topic1": "0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
      "topic2": "0x0000000000000000000000000000000000000000000000000000000000001010",
      "topic3": "0x000000000000000000000000b63c1246a11edc1e784c39ab95295e4180c5071b",
      "topic4": "0x0000000000000000000000009ead30c8518a19f0b493eea1bd5af8fcc5fd4ba2",
      "version": 0
    }
  ],
  "count": 2
}

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"

tx_hash
string
required

Transaction hash (66 character hex string starting with 0x)

Example:

"0x00dcc066aad65ae4f10c0fc4ec1fac5d3693c12c01d98a9f6a87448be9b26200"

Query Parameters

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

Transaction logs

transaction_hash
string
offset
integer
limit
integer
result
object[]
count
integer