blockchain

Get block headers.

Get block headers for minHeight <= height <= maxHeight.

At most 20 items will be returned.

Upon success, the Cache-Control header will be set with the default maximum age.

Parameters

  • OBJECT - Range of block height
    • minHeight: INTEGER - Minimum block height to return
    • maxHeight: INTEGER - Maximum block height to return
curl https://cosmos-mainnet-archive.allthatnode.com:26657/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--header "Content-Type: application/json" \
--data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "blockchain",
  "params": {
    "minHeight": "5200791",
    "maxHeight": "5200792"
  }
}'

Returns

  • OBJECT - Information of the network.

Note - At most 20 items will be returned. Upon success, the Cache-Control header will be set with the default maximum age.

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "last_height": "16367773",
    "block_metas": [
      {
        "block_id": {
          "hash": "46482A671598C24C1022D946F3DDDD6A99E99AD747B68337A45C2C47FA7ED5D5",
          "parts": {
            "total": 1,
            "hash": "4B74A7E32A55DDE51A31E943AA8B3C46DE0C874869AD10EA6A50A37E5D8D1CF2"
          }
        },
        "block_size": "10474",
        "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"
        },
        "num_txs": "0"
      },
      {
        "block_id": {
          "hash": "1455A0C15AC49BB506992EC85A3CD4D32367E53A087689815E01A524231C3ADF",
          "parts": {
            "total": 1,
            "hash": "0611CBDB56304D185FABEC3BA9AE007804079B4BAAEBB0B27DBA77452A1591DB"
          }
        },
        "block_size": "341",
        "header": {
          "version": {
            "block": "11"
          },
          "chain_id": "cosmoshub-4",
          "height": "5200791",
          "time": "2019-12-11T16:11:34Z",
          "last_block_id": {
            "hash": "",
            "parts": {
              "total": 0,
              "hash": ""
            }
          },
          "last_commit_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
          "data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
          "validators_hash": "7A1A82D85DAF2CE0C6B1C334BEC2F6D59DFD2F577AA336BAB2B14A64F16E9DC0",
          "next_validators_hash": "7A1A82D85DAF2CE0C6B1C334BEC2F6D59DFD2F577AA336BAB2B14A64F16E9DC0",
          "consensus_hash": "0F2908883A105C793B74495EB7D6DF2EEA479ED7FC9349206A65CB0F9987A0B8",
          "app_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
          "last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
          "evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
          "proposer_address": "2199EAE894CA391FA82F01C2C614BFEB103D056C"
        },
        "num_txs": "0"
      }
    ]
  }
}

Try Yourself

Language
Click Try It! to start a request and see the response here!