GETCommit

https://rpc-cosmos-mainnet.nodit.io/commit

Retrieves the commit at the specified block height. Returns the latest commit if height is omitted.

Query Parameters
heightstring

Target block height.

Responses
jsonrpcstringrequired

JSON-RPC protocol version. Always 2.0.

idintegerrequired

The request ID, echoed back unchanged.

signed_headerobject

Signed header (header and commit).

headerobject

Block header.

versionobject

Block and application protocol versions.

blockstring

Block protocol version.

appstring

Application protocol version.

chain_idstring

Chain ID.

heightstring

Block height.

timestring

Block time (UTC).

last_block_idobject

Block ID of the previous block.

hashstring

Block hash.

partsobject

Part set header, used when the block is split into parts for gossiping.

last_commit_hashstring

Hash of the validators' commit for the previous block.

data_hashstring

Hash of the transactions in the block.

validators_hashstring

Hash of the validator set for the current block.

next_validators_hashstring

Hash of the validator set for the next block.

consensus_hashstring

Hash of the consensus parameters for the current block.

app_hashstring

Application state hash after executing the previous block's transactions.

last_results_hashstring

Root hash of the execution results of the previous block's transactions.

evidence_hashstring

Hash of the evidence included in the block.

proposer_addressstring

Address of the validator that proposed the block.

commitobject

Validators' commit for the block.

heightstring

Height of the committed block.

roundinteger

Consensus round in which the block was committed.

block_idobject

ID of the committed block.

hashstring

Block hash.

partsobject

Part set header, used when the block is split into parts for gossiping.

signaturesobject[]

Validator signatures, ordered by the validator set.

block_id_flaginteger

Validator vote status: 1 absent, 2 voted for this block, 3 voted nil.

validator_addressstring

Address of the signing validator.

timestampstring

Time the signature was made.

signaturestring

Validator signature (Base64).

canonicalboolean

true if this is the canonical commit included in the next block; false if the block is the latest and has no canonical commit yet.

X-API-KEY
RequestCU20
cURL
curl -X GET "https://rpc-cosmos-mainnet.nodit.io/commit?height=1" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "signed_header": {
      "header": {
        "version": {
          "block": "11",
          "app": "0"
        },
        "chain_id": "cosmoshub-4",
        "height": "1",
        "time": "2019-12-11T16:11:34Z",
        "last_block_id": {
          "hash": "",
          "parts": {
            "total": 0,
            "hash": ""
          }
        },
        "last_commit_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
        "data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
        "validators_hash": "8B4640A28F07F7F4D9D5C7F4A7A2FBE8E1E5C3A1D2B3C4D5E6F7A8B9C0D1E2F3",
        "next_validators_hash": "8B4640A28F07F7F4D9D5C7F4A7A2FBE8E1E5C3A1D2B3C4D5E6F7A8B9C0D1E2F3",
        "consensus_hash": "048091BC7DDC283F77BFBF91D73C44DA58C3DF8A9CBC867405D8B7F3DAADA22F",
        "app_hash": "",
        "last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
        "evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
        "proposer_address": "B00A6323737F321EB0B8D59C6FD497A14B60938A"
      },
      "commit": {
        "height": "1",
        "round": 0,
        "block_id": {
          "hash": "D70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED",
          "parts": {
            "total": 1,
            "hash": "1A79E57CC6A3D49E5E9E6A9D2B5F2D5A0A3B7E8C1D2E3F4A5B6C7D8E9F0A1B2C"
          }
        },
        "signatures": [
          {
            "block_id_flag": 2,
            "validator_address": "B00A6323737F321EB0B8D59C6FD497A14B60938A",
            "timestamp": "2019-12-11T16:11:40Z",
            "signature": "WkqFVjGaVFIQMAbClHXHSBOQW0V5RM3PKpFqmSX/I2wkAlhbzPCHm/DCNj6LNrWnKoKY0M+ypzLKVpPpkM4SDg=="
          }
        ]
      }
    },
    "canonical": true
  }
}