/v1/blocks/by_version/

Retrieves block metadata and optionally the transactions contained in the block, based on a specific ledger version. If the block is pruned, the server will return a 410 error. To avoid partial results when with_transactions=true, consider checking the total number of transactions expected.

⚠ This endpoint is only available with Blast access.

Path parameters

versionintegerRequired
Ledger version to look up block information for.

Query parameters

with_transactionsbooleanOptional
If set to true, includes all transactions in the block. May be limited by max transaction size.

Response

Block data with or without transactions.
block_heightstring or null
block_hashstring or null
block_timestampstring or null
first_versionstring or null
last_versionstring or null
transactionslist of objects or null