latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-2028153455.3 KB

385d1aaf056f

Blocks

Get blocks by height

This endpoint allows you to get the transactions in a block and the corresponding block information.

Transactions are limited by max default transactions size. If not all transactions are present, the user will need to query for the rest of the transactions via the get transactions API.

If the block is pruned, it will return a 410

get/blocks/by_height/{block_height}

Path parameters

block_heightinteger required

Block height to lookup. Starts at 0

Query parameters

with_transactionsboolean

If set to true, include all transactions in the block

If not provided, no transactions will be retrieved

Response

block_heightstring uint64 required

A string containing a 64-bit unsigned integer.

We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.

block_hashstring required
block_timestampstring uint64 required

A string containing a 64-bit unsigned integer.

We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.

first_versionstring uint64 required

A string containing a 64-bit unsigned integer.

We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.

last_versionstring uint64 required

A string containing a 64-bit unsigned integer.

We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.

transactionsTransaction[] — unresolved $ref

The transactions in the block in sequential order