Get block (by hash)
Returns the block from the given hash
Path Parameters
- hash string required
Block hash
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
data object
txs array[]Txs that will be applied by state @ block.Height+1. NOTE: not all txs here are valid. We're just agreeing on the order first. This means that block.AppHash does not include these txs.
evidence object
evidence undefined[]- hash string
header object
app_hash integer[]state after txs from the previous block
chain_id stringconsensus_hash integer[]consensus params for current block
data_hash integer[]transactions
evidence_hash integer[]consensus info
height integerlast_block_id object
hash integer[]parts object
hash integer[]total integerlast_commit_hash integer[]hashes of block data
last_results_hash integer[]root hash of all results from the txs from the previous block see
DeterministicExecTxResult
to understand which parts of a tx is hashed into herenext_validators_hash integer[]validators for the next block
proposer_address integer[]original proposer of the block
time stringvalidators_hash integer[]hashes from the app output from the prev block
version object
app integerblock integerlast_commit object
block_id object
hash integer[]parts object
hash integer[]total integerheight integerNOTE: The signatures are in order of address to preserve the bonded ValidatorSet order. Any peer with a block can gossip signatures by index with a peer without recalculating the active ValidatorSet.
round integersignatures object[]
block_id_flag integerPossible values: [
1
,2
,3
]signature integer[]timestamp stringvalidator_address integer[]
{
"data": {
"txs": [
[
0
]
]
},
"evidence": {
"evidence": [
null
]
},
"hash": "string",
"header": {
"app_hash": [
0
],
"chain_id": "string",
"consensus_hash": [
0
],
"data_hash": [
0
],
"evidence_hash": [
0
],
"height": 0,
"last_block_id": {
"hash": [
0
],
"parts": {
"hash": [
0
],
"total": 0
}
},
"last_commit_hash": [
0
],
"last_results_hash": [
0
],
"next_validators_hash": [
0
],
"proposer_address": [
0
],
"time": "string",
"validators_hash": [
0
],
"version": {
"app": 0,
"block": 0
}
},
"last_commit": {
"block_id": {
"hash": [
0
],
"parts": {
"hash": [
0
],
"total": 0
}
},
"height": 0,
"round": 0,
"signatures": [
{
"block_id_flag": 1,
"signature": [
0
],
"timestamp": "string",
"validator_address": [
0
]
}
]
}
}