Skip to main content
GET
Get Block

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)