block_by_hash

Get Block By Hash.

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

Parameters

  • hash: STRING - Block hash
curl https://cosmos-mainnet-archive.allthatnode.com:26657/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--header "Content-Type: application/json" \
--data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "block_by_hash",
  "params": {
    "hash": "1455A0C15AC49BB506992EC85A3CD4D32367E53A087689815E01A524231C3ADF"
  }
}'

Returns

  • OBJECT - Block informations.
  • Note - Upon success, the Cache-Control header will be set with the default maximum age.
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "block_id": {
      "hash": "1455A0C15AC49BB506992EC85A3CD4D32367E53A087689815E01A524231C3ADF",
      "parts": {
        "total": 1,
        "hash": "0611CBDB56304D185FABEC3BA9AE007804079B4BAAEBB0B27DBA77452A1591DB"
      }
    },
    "block": {
      "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"
      },
      "data": {
        "txs": []
      },
      "evidence": {
        "evidence": []
      },
      "last_commit": {
        "height": "0",
        "round": 0,
        "block_id": {
          "hash": "",
          "parts": {
            "total": 0,
            "hash": ""
          }
        },
        "signatures": []
      }
    }
  }
}

Try Yourself

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