Skip to content

Get a block

POST
/rollkit.v1.StoreService/GetBlock

Retrieve a block by height or hash from the chain store.

Request Body

application/json
JSON
{
"height": 1
}

Responses

Block retrieved successfully

application/json
JSON
{
"block": {
"header": {
"header": {
"version": {
"block": 0,
"app": 0
},
"height": 0,
"time": 0,
"last_header_hash": "string",
"last_commit_hash": "string",
"data_hash": "string",
"consensus_hash": "string",
"app_hash": "string",
"last_results_hash": "string",
"proposer_address": "string",
"validator_hash": "string",
"chain_id": "string"
},
"signature": "string",
"signer": {
"address": "string",
"pub_key": "string"
}
},
"data": {
"metadata": {
"chain_id": "string",
"height": 0,
"time": 0,
"last_data_hash": "string"
},
"txs": [
"string"
]
}
},
"header_da_height": 0,
"data_da_height": 0
}

Playground

Body

Samples

cURL
JavaScript
PHP
Python
Powered by VitePress OpenAPI

Released under the APACHE-2.0 License