Skip to main content
GET
/
api
/
v1
/
customer
/
{chain}
/
block
Get Block
curl --request GET \
  --url https://api-gateway.sonarx.com/api/v1/customer/{chain}/block \
  --header 'apikey: <api-key>'
{
  "block_number": 81901165,
  "timestamp": 1768922302,
  "datetime": "2026-01-20T15:18:22",
  "block_hash": "0x70977f71168a51813978584b23cccd0fa86cdc1239ab403feafc68e85733af1a",
  "block_parent_hash": "0x8ee5ee7b7256f12f985f8dcdc2a3ca26a494be30ca6ba379cba2a5a06c6cd311",
  "version": 0,
  "transactions_root": "0xb11abe9386303f977bbfa935f4b2c4924a45b41095c24b207828c12e2cb7f058",
  "state_root": "0x7850f2b1d88f135ca3b7506add74ab738c168748ce825543d43d49ad2471c584",
  "receipts_root": "0x74dd7cda82d48726b16c25560a00d11d37e525e35c060b6958e7350a53b47dd1",
  "miner": "0x0000000000000000000000000000000000000000",
  "size": 188062,
  "gas_limit": 65000000,
  "gas_used": 39500751,
  "transaction_count": 176,
  "base_fee_per_gas": 600795160350
}

Documentation Index

Fetch the complete documentation index at: https://docs.sonarx.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

apikey
string
header
required

API key for authentication. Contact SonarX to obtain your API key.

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

full_transactions
boolean
default:false

If true, returns full transaction objects; if false, returns only block data

Response

Block data

block_number
integer

The block number

timestamp
integer

Unix timestamp of the block

datetime
string<date-time>

ISO 8601 formatted datetime

block_hash
string

Hash of the block

block_parent_hash
string

Hash of the parent block

version
integer

Block version

logs_bloom
string

Bloom filter for the logs

transactions_root
string

Root hash of the transactions trie

state_root
string

Root hash of the state trie

receipts_root
string

Root hash of the receipts trie

miner
string

Address of the block miner/validator

extra_data
string

Extra data included in the block

size
integer

Size of the block in bytes

gas_limit
integer

Maximum gas allowed in this block

gas_used
integer

Total gas used by all transactions

transaction_count
integer

Number of transactions in the block

base_fee_per_gas
integer

Base fee per gas in wei

transactions
object[] | null

Array of transaction objects (when full_transactions=true)