block

Get block at a specified height.

Parameters

  • height - integer, height to return. If no height is provided, it will fetch the latest block. Default value = 0

Result

Block information.

Example

Request

curl <your-tendermint-endpoint>/block?height=5200792

Return

{
    "jsonrpc": "2.0",
    "id": -1,
    "result": {
        "block_id": {
            "hash": "46482A671598C24C1022D946F3DDDD6A99E99AD747B68337A45C2C47FA7ED5D5",
            "parts": {
                "total": 1,
                "hash": "4B74A7E32A55DDE51A31E943AA8B3C46DE0C874869AD10EA6A50A37E5D8D1CF2"
            }
        },
        "block": {
            "header": {
                "version": {
                    "block": "11"
                },
                "chain_id": "cosmoshub-4",
                "height": "5200792",
                "time": "2021-02-18T12:23:53.070398874Z",
                "last_block_id": {
                    "hash": "1455A0C15AC49BB506992EC85A3CD4D32367E53A087689815E01A524231C3ADF",
                    "parts": {
                        "total": 1,
                        "hash": "0611CBDB56304D185FABEC3BA9AE007804079B4BAAEBB0B27DBA77452A1591DB"
                    }
                },
                "last_commit_hash": "168DAA2F0440310A7C56BCED7DBAADB3DAEE59887F4F3AE9E9E4D70D21140069",
                "data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
                "validators_hash": "7A1A82D85DAF2CE0C6B1C334BEC2F6D59DFD2F577AA336BAB2B14A64F16E9DC0",
                "next_validators_hash": "7A1A82D85DAF2CE0C6B1C334BEC2F6D59DFD2F577AA336BAB2B14A64F16E9DC0",
                "consensus_hash": "0F2908883A105C793B74495EB7D6DF2EEA479ED7FC9349206A65CB0F9987A0B8",
                "app_hash": "FCF40A4AC276C721AA20F67132EBE7ED3873BA6FDE0B5BBE1364C5FC54B564BE",
                "last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
                "evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
                "proposer_address": "AC2D56057CD84765E6FBE318979093E8E44AA18F"
            },
            "data": {
                "txs": []
            },
            "evidence": {
                "evidence": []
            },
            "last_commit": {
                "height": "5200791",
                "round": 1,
                "block_id": {
                    "hash": "1455A0C15AC49BB506992EC85A3CD4D32367E53A087689815E01A524231C3ADF",
                    "parts": {
                        "total": 1,
                        "hash": "0611CBDB56304D185FABEC3BA9AE007804079B4BAAEBB0B27DBA77452A1591DB"
                    }
                },
                "signatures": [
                    {
                        "block_id_flag": 1,
                        "validator_address": "",
                        "timestamp": "0001-01-01T00:00:00Z",
                        "signature": null
                    },
                    {
                        "block_id_flag": 2,
                        "validator_address": "2199EAE894CA391FA82F01C2C614BFEB103D056C",
                        "timestamp": "2021-02-18T12:23:52.973220324Z",
                        "signature": "EdldkvCy3GVPq7PMszF7QFE8e+XRblF5/0Ux4be/1UcpZ3CdDwe0m/ilAJ3dcr4rveRnTcAkuhsniugPcGzuDQ=="
                    },
                    ...
                    {
                        "block_id_flag": 2,
                        "validator_address": "8332069BCA9D125E72BF87E4DA172C9E83B90FD4",
                        "timestamp": "2021-02-18T12:23:53.243884959Z",
                        "signature": "QyRmLF4RkXFD6GjSvffaCfq8nZ2SRykwr6lqBTN+OmDhcqZqP1aEGWalRKFVfsZJHZuFwMoPGHkajBz52avDBQ=="
                    }
                ]
            }
        }
    }
}