/block

Return the block at a certain Height.

If no height is provided, it will fetch the latest block.

// Request
curl http://<your-app-id>.ankr.com/block?height=1
// Result
{
"jsonrpc": "2.0",
"id": "",
"result": {
"block_meta": {
"block_id": {
"hash": "C8EC9F10AC0A64F6B4056744503244658C7ED6567FF1BD4F79B1511C738FB8B0",
"parts": {
"total": "1",
"hash": "F6375C3538CD94BD8875D52C33FC697FBF956082A0A6A22797BB9AF2F3127780"
}
},
"header": {
"version": {
"block": "10",
"app": "0"
},
"chain_id": "heimdall-80001",
"height": "1",
"time": "2020-06-04T10:47:20.806665Z",
"num_txs": "0",
"total_txs": "0",
"last_block_id": {
"hash": "",
"parts": {
"total": "0",
"hash": ""
}
},
"last_commit_hash": "",
"data_hash": "",
"validators_hash": "91915B4280BF27201C05640DA1909B96D7A33543534D0C4B3F2D643C485290A8",
"next_validators_hash": "91915B4280BF27201C05640DA1909B96D7A33543534D0C4B3F2D643C485290A8",
"consensus_hash": "81BA6261D0077795E489737675DE120CC9170ADCCAAD805E12EF2708A2E21453",
"app_hash": "",
"last_results_hash": "",
"evidence_hash": "",
"proposer_address": "928ED6A3E94437BBD316CCAD78479F1D163A6A8C"
}
},
"block": {
"header": {
"version": {
"block": "10",
"app": "0"
},
"chain_id": "heimdall-80001",
"height": "1",
"time": "2020-06-04T10:47:20.806665Z",
"num_txs": "0",
"total_txs": "0",
"last_block_id": {
"hash": "",
"parts": {
"total": "0",
"hash": ""
}
},
"last_commit_hash": "",
"data_hash": "",
"validators_hash": "91915B4280BF27201C05640DA1909B96D7A33543534D0C4B3F2D643C485290A8",
"next_validators_hash": "91915B4280BF27201C05640DA1909B96D7A33543534D0C4B3F2D643C485290A8",
"consensus_hash": "81BA6261D0077795E489737675DE120CC9170ADCCAAD805E12EF2708A2E21453",
"app_hash": "",
"last_results_hash": "",
"evidence_hash": "",
"proposer_address": "928ED6A3E94437BBD316CCAD78479F1D163A6A8C"
},
"data": {
"txs": null
},
"evidence": {
"evidence": null
},
"last_commit": {
"block_id": {
"hash": "",
"parts": {
"total": "0",
"hash": ""
}
},
"precommits": null
}
}
}
}