/block

Get block information.

Parameters

height (BigDecimal) height to return. If no height is provided, it will fetch the latest block.

Returns

block_id object

block object

header object

Example

//Request
curl -X GET http://<your-app-id>.ankr.com/block?height=1
//Response
{
"jsonrpc": "2.0",
"id": "",
"result": {
"block_meta": {
"block_id": {
"hash": "494A674FCDADB0F67BC99CBC33B6F8061E1B76A786485B662EE422C6918C86C8",
"parts": {
"total": "1",
"hash": "AF4CEDFAB7FB7E5263D9C5A72F5ECD3F3A4C186D8D3C10D80C95FCB2BCEE0E11"
}
},
"header": {
"version": {
"block": "10",
"app": "0"
},
"chain_id": "Binance-Chain-Tigris",
"height": "1",
"time": "2019-04-18T05:59:26.228734998Z",
"num_txs": "0",
"total_txs": "0",
"last_block_id": {
"hash": "",
"parts": {
"total": "0",
"hash": ""
}
},
"last_commit_hash": "",
"data_hash": "",
"validators_hash": "43C53A50D8653EF8CF1E5716DA68120FB51B636DC6D111EC3277B098ECD42D49",
"next_validators_hash": "43C53A50D8653EF8CF1E5716DA68120FB51B636DC6D111EC3277B098ECD42D49",
"consensus_hash": "294D8FBD0B94B767A7EBA9840F299A3586DA7FE6B5DEAD3B7EECBA193C400F93",
"app_hash": "",
"last_results_hash": "",
"evidence_hash": "",
"proposer_address": "14CFCE69B645F3F88BAF08EA5B77FA521E4480F9"
}
},
"block": {
"header": {
"version": {
"block": "10",
"app": "0"
},
"chain_id": "Binance-Chain-Tigris",
"height": "1",
"time": "2019-04-18T05:59:26.228734998Z",
"num_txs": "0",
"total_txs": "0",
"last_block_id": {
"hash": "",
"parts": {
"total": "0",
"hash": ""
}
},
"last_commit_hash": "",
"data_hash": "",
"validators_hash": "43C53A50D8653EF8CF1E5716DA68120FB51B636DC6D111EC3277B098ECD42D49",
"next_validators_hash": "43C53A50D8653EF8CF1E5716DA68120FB51B636DC6D111EC3277B098ECD42D49",
"consensus_hash": "294D8FBD0B94B767A7EBA9840F299A3586DA7FE6B5DEAD3B7EECBA193C400F93",
"app_hash": "",
"last_results_hash": "",
"evidence_hash": "",
"proposer_address": "14CFCE69B645F3F88BAF08EA5B77FA521E4480F9"
},
"data": {
"txs": null
},
"evidence": {
"evidence": null
},
"last_commit": {
"block_id": {
"hash": "",
"parts": {
"total": "0",
"hash": ""
}
},
"precommits": null
}
}
}
}