v1
latestOpenAPI 3.0.02026-07-17224996.6 KBBlocks
Gets Blocks by Height
Get block data by the provided height range or list of heights.
get/blocks
Query parameters
A comma-separated list of block heights to get. This parameter is incompatible with start_height and end_height.
The start height of the block range to get. Must be used together with end_height. This parameter is incompatible with height.
The ending height of the block range to get. Must be used together with start_height. This parameter is incompatible with height.
expandstring[]
A comma-separated list indicating which properties of the content to expand.
selectstring[]
A comma-separated list indicating which properties of the content to return.
Response
OK
Example response
[
{
"block_status": "BLOCK_UNKNOWN",
"payload": {
"collection_guarantees": [
{
"collection_id": null,
"signer_ids": [
null,
null
],
"signature": null,
"reference_block_id": null,
"cluster_chain_id": "cluster_chain_id"
},
{
"collection_id": null,
"signer_ids": [
null,
null
],
"signature": null,
"reference_block_id": null,
"cluster_chain_id": "cluster_chain_id"
}
],
"block_seals": [
{
"result_id": null,
"final_state": "final_state",
"aggregated_approval_signatures": [
{
"verifier_signatures": [
null,
null
],
"signer_ids": [
null,
null
]
},
{
"verifier_signatures": [
null,
null
],
"signer_ids": [
null,
null
]
}
],
"block_id": null
},
{
"result_id": null,
"final_state": "final_state",
"aggregated_approval_signatures": [
{
"verifier_signatures": [
null,
null
],
"signer_ids": [
null,
null
]
},
{
"verifier_signatures": [
null,
null
],
"signer_ids": [
null,
null
]
}
],
"block_id": null
}
]
},
"_links": null,
"header": {
"parent_id": null,
"id": "id",
"parent_voter_signature": "",
"height": "height",
"timestamp": "2000-01-23T04:56:07.000+00:00"
},
"execution_result": {
"metadata": {
"executor_metadata": {
"execution_result_id": null,
"executor_ids": [
null,
null
]
}
},
"_links": {
"_self": "_self"
},
"chunks": [
{
"start_state": "",
"index": "index",
"number_of_transactions": "number_of_transactions",
"collection_index": "collection_index",
"end_state": "",
"event_collection": "",
"block_id": null,
"total_computation_used": "total_computation_used"
},
{
"start_state": "",
"index": "index",
"number_of_transactions": "number_of_transactions",
"collection_index": "collection_index",
"end_state": "",
"event_collection": "",
"block_id": null,
"total_computation_used": "total_computation_used"
}
],
"id": null,
"previous_result_id": null,
"block_id": null,
"events": [
{
"transaction_id": null,
"payload": "",
"transaction_index": "transaction_index",
"type": "type",
"event_index": "event_index"
},
{
"transaction_id": null,
"payload": "",
"transaction_index": "transaction_index",
"type": "type",
"event_index": "event_index"
}
]
},
"_expandable": {
"payload": "payload",
"execution_result": "http://example.com/aeiou"
}
}
]