Skip to main content

Blocks

This component of the REST API allows one to query information about Blocks and Hyperblocks.

GET Get Hyperblock by Nonce

https://gateway.multiversx.com/hyperblock/by-nonce/:nonce

This endpoint allows one to query a Hyperblock by its nonce.

Path Parameters

ParamRequiredTypeDescription
nonceREQUIREDnumberThe Block nonce (height).
info

This endpoint is only defined by the Proxy. The Observer does not expose this endpoint.

tip

A Hyperblock is a block-like abstraction that reunites the data from all shards, and contains only fully-executed transactions (that is, transactions executed both in source and in destination shard).

A hyperblock is composed using a metablock as a starting point - therefore, the nonce or hash of a hyperblock is the same as the nonce or hash of the base metablock.

GET Get Hyperblock by Hash

https://gateway.multiversx.com/hyperblock/by-hash/:hash

This endpoint allows one to query a Hyperblock by its hash.

Path Parameters

ParamRequiredTypeDescription
hashOPTIONALstringThe Block hash.
info

This endpoint is only is only defined by the Proxy. The Observer does not expose this endpoint.

GET Get Block by Nonce

https://gateway.multiversx.com/block/:shard/by-nonce/:nonce

This endpoint allows one to query a Shard Block by its nonce (or height).

Path Parameters

ParamRequiredTypeDescription
shardOPTIONALnumberThe Shard.
nonceREQUIREDnumberThe Block nonce (height).

Query Parameters

ParamRequiredTypeDescription
withTxsOPTIONALbooleanWhether to include the transactions in the response.
info

For Observers, the shard parameter should not be set.

GET Get Block by Hash

https://gateway.multiversx.com/block/:shard/by-hash/:hash

This endpoint allows one to query a Shard Block by its hash.

Path Parameters

ParamRequiredTypeDescription
shardOPTIONALnumberThe Shard.
hashREQUIREDstringThe Block hash.

Query Parameters

ParamRequiredTypeDescription
withTxsOPTIONALbooleanWhether to include the transactions in the response.
info

For Observers, the shard parameter should not be set.