Description

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.

Authentication

Authentication is via an 'Authorization: Bearer YOUR_API_ACCESS_KEY' header (which you must add to the sample requests).

Path Params
uint64
required

Block height to lookup. Starts at 0

Query Params
boolean

If set to true, include all transactions in the block

If not provided, no transactions will be retrieved

Headers
string
required

An API Access Key tied to the network you want to interact with (Testnet, Mainnet).

Responses

Response body
object
string
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.

string
required
string
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.

string
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.

string
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.

transactions
array of objects

The transactions in the block in sequential order

transactions
Headers
object
uint8

Chain ID of the current chain

uint64

Current ledger version of the chain

uint64

Oldest non-pruned ledger version of the chain

uint64

Current timestamp of the chain

uint64

Current epoch of the chain

uint64

Current block height of the chain

uint64

Oldest non-pruned block height of the chain

uint64

The cost of the call in terms of gas

string

Cursor to be used for endpoints that support cursor-based
pagination. Pass this to the start field of the endpoint
on the next call to get the next page of results.

Language