/block_by_hash
Get Block By Hash.
Parameters:
hash- string, block hash
Example:
// Request
curl -X GET -H 'Content-Type: application/json' https://cosmos.blockpi.network/rpc/v1/<your-api-key>/block_by_hash?hash=0x55728BEBE614C989F40720FDCD3A565115407BDCA0D0BBEEE6A51350E8BB412F
// Result
{
"jsonrpc": "2.0",
"id": -1,
"result": {
"block_id": {
"hash": "55728BEBE614C989F40720FDCD3A565115407BDCA0D0BBEEE6A51350E8BB412F",
"parts": {
"total": 1,
"hash": "E88010DC45941059FA174E1979F013C91157E1CBA1A1832036493B12B18E2FC8"
}
},
"block": {
"header": {
"version": {
"block": "11"
},
"chain_id": "cosmoshub-4",
"height": "14183822",
"time": "2023-02-22T07:02:28.186373674Z",
"last_block_id": {
"hash": "AA83830192C2F4C606FB351888A6110844B9DE9F9DB0D139D5F43BD5420FB657",
"parts": {
"total": 1,
"hash": "7B427742BC05C487C456C9AFE27101F31CAC9FD8EFD4CDA3CE907BDFD9FFA240"
}
},
"last_commit_hash": "6CECBD40AF8E9ED2766BBDE0209CC07AE4DDDCE0FE5737E4091F27C7E1B88E70",
"data_hash": "23E47B2D0F4A115082B9AF566DB3618BB7E143CB26C42C194725EDD78A4A69A5",
"validators_hash": "72C90481C1525AAC72E7F330A7AEE985458995725BF2C84B2EE0599490D845DE",
"next_validators_hash": "72C90481C1525AAC72E7F330A7AEE985458995725BF2C84B2EE0599490D845DE",
"consensus_hash": "80364965B7C2CC9DE961C0998B47A7F93F1970077EB882E0ED1C3822408888C7",
"app_hash": "323B71A2A9B4995916A2832E507F2F30CD7FF18371FCE23D291A892DC56048E1",
"last_results_hash": "062A583EC0608F483E15CEFCCBB981323993E3D0EDCCC77C7D07D08623ED3219",
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"proposer_address": "83F47D7747B0F633A6BA0DF49B7DCF61F90AA1B0"
},
"data": {
"txs": [
"CpMBCpABChwvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5kEnAKLWNvc21vczFzNXo2NzJybGNmeTU5Nnh2bTNxMmM0cGhmaGc5cGs3MDQ2NTRhZhItY29zbW9zMWYwZDc3a3FjY2pjejk1cjRweTQ3OHpwcGd3bDNwbDh3NHg5czBwGhAKBXVhdG9tEgcxNzE5OTM5EmgKUQpGCh8vY29zbW9zLmNyeXB0by5zZWNwMjU2azEuUHViS2V5EiMKIQNFCHM2H9opAAax5ybDYM5LYJY+0Qod3RJxZD5n+3g7cxIECgIIfxiUAhITCg0KBXVhdG9tEgQyMjk1EPrMBRpAde8jirCaqU5sPvl0wPqxkt1V/xonE3bWsXF6nnXUgpZ4HnerO9+FhT/cUnfFH0bQfMn4gBuozMqvQmXcRKbANA==",
......
]
},
"evidence": {
"evidence": []
},
"last_commit": {
"height": "14183821",
"round": 0,
"block_id": {
"hash": "AA83830192C2F4C606FB351888A6110844B9DE9F9DB0D139D5F43BD5420FB657",
"parts": {
"total": 1,
"hash": "7B427742BC05C487C456C9AFE27101F31CAC9FD8EFD4CDA3CE907BDFD9FFA240"
}
},
"signatures": [
{
"block_id_flag": 2,
"validator_address": "AC2D56057CD84765E6FBE318979093E8E44AA18F",
"timestamp": "2023-02-22T07:02:28.163557562Z",
"signature": "hz3PeNH0CqISaz2eZkUfzy8n5oJbRlTw+9/tbiiGld4iuaxx96wtmKlf/VwOZOUvwZbZbldaPlTcsBxgWyeQDA=="
},
......
]
}
}
}
}
Last updated