Historical info

HistoricalInfo queries the historical info for given height.

GET//osmo.nownodes.io/cosmos/staking/v1beta1/historical_info/{height}
Path parameters
height*string (int64)

height defines at which height to query the historical info.

Response

A successful response.

Body
histobject

hist defines the historical info at the given height.

historical_recordobject

Historical contains a set of minimum values needed for evaluating historical validator sets and blocks. It is stored as part of staking module's state, which persists the n most recent HistoricalInfo (n is set by the staking module's historical_entries parameter).

Request
const response = await fetch('//osmo.nownodes.io/cosmos/staking/v1beta1/historical_info/{height}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "hist": {
    "header": {
      "version": {
        "block": "text",
        "app": "text"
      },
      "chain_id": "text",
      "height": "text",
      "time": "2024-09-20T00:48:56.311Z",
      "last_block_id": {
        "hash": "Ynl0ZXM=",
        "part_set_header": {
          "hash": "Ynl0ZXM="
        }
      },
      "last_commit_hash": "Ynl0ZXM=",
      "data_hash": "Ynl0ZXM=",
      "validators_hash": "Ynl0ZXM=",
      "next_validators_hash": "Ynl0ZXM=",
      "consensus_hash": "Ynl0ZXM=",
      "app_hash": "Ynl0ZXM=",
      "last_results_hash": "Ynl0ZXM=",
      "evidence_hash": "Ynl0ZXM=",
      "proposer_address": "Ynl0ZXM="
    },
    "valset": [
      {
        "operator_address": "text",
        "consensus_pubkey": {
          "type_url": "text",
          "value": "Ynl0ZXM="
        },
        "jailed": false,
        "status": "BOND_STATUS_UNSPECIFIED",
        "tokens": "text",
        "delegator_shares": "text",
        "description": {
          "moniker": "text",
          "identity": "text",
          "website": "text",
          "security_contact": "text",
          "details": "text"
        },
        "unbonding_height": "text",
        "unbonding_time": "2024-09-20T00:48:56.311Z",
        "commission": {
          "commission_rates": {
            "rate": "text",
            "max_rate": "text",
            "max_change_rate": "text"
          },
          "update_time": "2024-09-20T00:48:56.311Z"
        },
        "min_self_delegation": "text",
        "unbonding_on_hold_ref_count": "text",
        "unbonding_ids": [
          "text"
        ]
      }
    ]
  },
  "historical_record": {
    "apphash": "Ynl0ZXM=",
    "time": "2024-09-20T00:48:56.311Z",
    "validators_hash": "Ynl0ZXM="
  }
}