Block

Block Api

Deprecated

Get latest block (v1)

get
/rpc/v1/block

Get the header of the most recently finalized block.

Responses
get
/rpc/v1/block
200

Returns the header of the most recently finalized block.

No content

Deprecated

Get block by height (v1)

get
/rpc/v1/block/height/{height}

Get information about the block that has been finalized at the given height.

Path parameters
heightinteger · u-int64Required

Block height

Query parameters
with_finalized_transactionsbooleanRequired

If true, returns all transactions that were finalized by this block in the order that they were executed.

Responses
get
/rpc/v1/block/height/{height}

No content

Deprecated

Get block by hash (v1)

get
/rpc/v1/block/{block_hash}

Get the header of the block with the given hash.

Path parameters
block_hashstringRequired

Hash of block to retrieve

Responses
get
/rpc/v1/block/{block_hash}
200

The header of the block with the given hash.

No content

Get transactions by block hash (v1)

get
/rpc/v1/block/{block_hash}/transactions

Get a list containing the hashes of the transactions that were finalized in the block with the given hash in the order that they were executed.

Path parameters
block_hashstringRequired

Hex encoded block hash

Responses
get
/rpc/v1/block/{block_hash}/transactions
200

List of the hashes of the transactions contained in the block.

Get latest block (v2)

get
/rpc/v2/block

Get the header of the most recently finalized block.

Responses
get
/rpc/v2/block
200

Returns the header of the most recently finalized block.

Get block by height (v2)

get
/rpc/v2/block/height/{height}

Get information about the block that has been finalized at the given height.

Path parameters
heightinteger · u-int64Required

Block height

Query parameters
with_finalized_transactionsbooleanRequired

If true, returns all transactions that were finalized by this block in the order that they were executed.

Responses
get
/rpc/v2/block/height/{height}

Get block by hash (v2)

get
/rpc/v2/block/{block_hash}

Get the header of the block with the given hash.

Path parameters
block_hashstringRequired

Hex encoded block hash

Responses
get
/rpc/v2/block/{block_hash}
200

The header of the block with the given hash.

Get latest block (v3)

get
/rpc/v3/block

Get the meta information of the most recently finalized and executed block.

Responses
get
/rpc/v3/block
200

Returns the header of the most recently finalized block.

Get block by height (v3)

get
/rpc/v3/block/height/{height}

Get information about the block that has been finalized at the given height.

Path parameters
heightinteger · u-int64Required

Block height

Query parameters
with_finalized_transactionsbooleanOptional

If true, returns all transactions that were finalized by this block in the order that they were executed.

typestring · enumOptional

Type of the transaction to be queried.

Possible values:
Responses
get
/rpc/v3/block/height/{height}

Get block by hash (v3)

get
/rpc/v3/block/{block_hash}

Get the header and execution output statistics of the block with the given hash.

Path parameters
block_hashstringRequired

Hex encoded block hash

Responses
get
/rpc/v3/block/{block_hash}
200

The header of the block with the given hash.

Get transactions by block hash (v3)

get
/rpc/v3/block/{block_hash}/transactions

Get a list containing the hashes of the transactions that were finalized in the block with the given hash in the order that they were executed.

Path parameters
block_hashstringRequired

Hex encoded block hash

Query parameters
typestring · enumOptional

Type of the transaction to be queried.

Possible values:
Responses
get
/rpc/v3/block/{block_hash}/transactions
200

List of the hashes of the transactions contained in the block.

Last updated