---
title: "GetLatestBlock returns the latest block."
method: GET
path: "/cosmos/base/tendermint/v1beta1/blocks/latest"
tags: ["Service"]
---

# GetLatestBlock returns the latest block.

`GET /cosmos/base/tendermint/v1beta1/blocks/latest`

## Response `200`

A successful response.

- CosmosBaseTendermintV1beta1GetLatestBlockResponse — GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
  - `block_id` TendermintTypesBlockID
    - `hash` string, byte
    - `part_set_header` TendermintTypesPartSetHeader
      - `total` integer
      - `hash` string, byte
  - `block` TendermintTypesBlock
    - `header` TendermintTypesHeader — Header defines the structure of a block header.
      - `version` TendermintVersionConsensus — Consensus captures the consensus rules for processing a block in the blockchain, including all blockchain data structures and the rules of the application's state transition machine.
        - `block` string, uint64
        - `app` string, uint64
      - `chain_id` string
      - `height` string, int64
      - `time` string, date-time
      - `last_block_id` TendermintTypesBlockID
        - `hash` string, byte
        - `part_set_header` TendermintTypesPartSetHeader
          - `total` integer
          - `hash` string, byte
      - `last_commit_hash` string, byte — commit from validators from the last block
      - `data_hash` string, byte
      - `validators_hash` string, byte — validators for the current block
      - `next_validators_hash` string, byte
      - `consensus_hash` string, byte
      - `app_hash` string, byte
      - `last_results_hash` string, byte
      - `evidence_hash` string, byte — evidence included in the block
      - `proposer_address` string, byte
    - `data` TendermintTypesData
      - `txs` string[] — Txs that will be applied by state @ block.Height+1. NOTE: not all txs here are valid. We're just agreeing on the order first. This means that block.AppHash does not include these txs.
    - `evidence` TendermintTypesEvidenceList
      - `evidence` TendermintTypesEvidence[]
        - `duplicate_vote_evidence` TendermintTypesDuplicateVoteEvidence — DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.
          - `vote_a` TendermintTypesVote — Vote represents a prevote or precommit vote from validators for consensus.
            - `type` 'SIGNED_MSG_TYPE_UNKNOWN' | 'SIGNED_MSG_TYPE_PREVOTE' | 'SIGNED_MSG_TYPE_PRECOMMIT' | 'SIGNED_MSG_TYPE_PROPOSAL' — SignedMsgType is a type of signed message in the consensus. - SIGNED_MSG_TYPE_PREVOTE: Votes - SIGNED_MSG_TYPE_PROPOSAL: Proposals
            - `height` string, int64
            - `round` integer
            - `block_id` TendermintTypesBlockID
              - …
            - `timestamp` string, date-time
            - `validator_address` string, byte
            - `validator_index` integer
            - `signature` string, byte — Vote signature by the validator if they participated in consensus for the associated block.
            - `extension` string, byte — Vote extension provided by the application. Only valid for precommit messages.
            - `extension_signature` string, byte — Vote extension signature by the validator if they participated in consensus for the associated block. Only valid for precommit messages.
          - `vote_b` TendermintTypesVote — Vote represents a prevote or precommit vote from validators for consensus.
            - `type` 'SIGNED_MSG_TYPE_UNKNOWN' | 'SIGNED_MSG_TYPE_PREVOTE' | 'SIGNED_MSG_TYPE_PRECOMMIT' | 'SIGNED_MSG_TYPE_PROPOSAL' — SignedMsgType is a type of signed message in the consensus. - SIGNED_MSG_TYPE_PREVOTE: Votes - SIGNED_MSG_TYPE_PROPOSAL: Proposals
            - `height` string, int64
            - `round` integer
            - `block_id` TendermintTypesBlockID
              - …
            - `timestamp` string, date-time
            - `validator_address` string, byte
            - `validator_index` integer
            - `signature` string, byte — Vote signature by the validator if they participated in consensus for the associated block.
            - `extension` string, byte — Vote extension provided by the application. Only valid for precommit messages.
            - `extension_signature` string, byte — Vote extension signature by the validator if they participated in consensus for the associated block. Only valid for precommit messages.
          - `total_voting_power` string, int64
          - `validator_power` string, int64
          - `timestamp` string, date-time
        - `light_client_attack_evidence` TendermintTypesLightClientAttackEvidence — LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.
          - `conflicting_block` TendermintTypesLightBlock
            - `signed_header` TendermintTypesSignedHeader
              - …
            - `validator_set` TendermintTypesValidatorSet
              - …
          - `common_height` string, int64
          - `byzantine_validators` TendermintTypesValidator[]
            - `address` string, byte
            - `pub_key` TendermintCryptoPublicKey
              - …
            - `voting_power` string, int64
            - `proposer_priority` string, int64
          - `total_voting_power` string, int64
          - `timestamp` string, date-time
    - `last_commit` TendermintTypesCommit — Commit contains the evidence that a block was committed by a set of validators.
      - `height` string, int64
      - `round` integer
      - `block_id` TendermintTypesBlockID
        - `hash` string, byte
        - `part_set_header` TendermintTypesPartSetHeader
          - `total` integer
          - `hash` string, byte
      - `signatures` TendermintTypesCommitSig[]
        - `block_id_flag` 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL' — - BLOCK_ID_FLAG_UNKNOWN: indicates an error condition - BLOCK_ID_FLAG_ABSENT: the vote was not received - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority - BLOCK_ID_FLAG_NIL: voted for nil
        - `validator_address` string, byte
        - `timestamp` string, date-time
        - `signature` string, byte
  - `sdk_block` CosmosBaseTendermintV1beta1Block — Block is tendermint type Block, with the Header proposer address field converted to bech32 string.
    - `header` CosmosBaseTendermintV1beta1Header — Header defines the structure of a Tendermint block header.
      - `version` TendermintVersionConsensus — Consensus captures the consensus rules for processing a block in the blockchain, including all blockchain data structures and the rules of the application's state transition machine.
        - `block` string, uint64
        - `app` string, uint64
      - `chain_id` string
      - `height` string, int64
      - `time` string, date-time
      - `last_block_id` TendermintTypesBlockID
        - `hash` string, byte
        - `part_set_header` TendermintTypesPartSetHeader
          - `total` integer
          - `hash` string, byte
      - `last_commit_hash` string, byte — commit from validators from the last block
      - `data_hash` string, byte
      - `validators_hash` string, byte — validators for the current block
      - `next_validators_hash` string, byte
      - `consensus_hash` string, byte
      - `app_hash` string, byte
      - `last_results_hash` string, byte
      - `evidence_hash` string, byte — evidence included in the block
      - `proposer_address` string — proposer_address is the original block proposer address, formatted as a Bech32 string. In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string for better UX. original proposer of the block
    - `data` TendermintTypesData
      - `txs` string[] — Txs that will be applied by state @ block.Height+1. NOTE: not all txs here are valid. We're just agreeing on the order first. This means that block.AppHash does not include these txs.
    - `evidence` TendermintTypesEvidenceList
      - `evidence` TendermintTypesEvidence[]
        - `duplicate_vote_evidence` TendermintTypesDuplicateVoteEvidence — DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.
          - `vote_a` TendermintTypesVote — Vote represents a prevote or precommit vote from validators for consensus.
            - `type` 'SIGNED_MSG_TYPE_UNKNOWN' | 'SIGNED_MSG_TYPE_PREVOTE' | 'SIGNED_MSG_TYPE_PRECOMMIT' | 'SIGNED_MSG_TYPE_PROPOSAL' — SignedMsgType is a type of signed message in the consensus. - SIGNED_MSG_TYPE_PREVOTE: Votes - SIGNED_MSG_TYPE_PROPOSAL: Proposals
            - `height` string, int64
            - `round` integer
            - `block_id` TendermintTypesBlockID
              - …
            - `timestamp` string, date-time
            - `validator_address` string, byte
            - `validator_index` integer
            - `signature` string, byte — Vote signature by the validator if they participated in consensus for the associated block.
            - `extension` string, byte — Vote extension provided by the application. Only valid for precommit messages.
            - `extension_signature` string, byte — Vote extension signature by the validator if they participated in consensus for the associated block. Only valid for precommit messages.
          - `vote_b` TendermintTypesVote — Vote represents a prevote or precommit vote from validators for consensus.
            - `type` 'SIGNED_MSG_TYPE_UNKNOWN' | 'SIGNED_MSG_TYPE_PREVOTE' | 'SIGNED_MSG_TYPE_PRECOMMIT' | 'SIGNED_MSG_TYPE_PROPOSAL' — SignedMsgType is a type of signed message in the consensus. - SIGNED_MSG_TYPE_PREVOTE: Votes - SIGNED_MSG_TYPE_PROPOSAL: Proposals
            - `height` string, int64
            - `round` integer
            - `block_id` TendermintTypesBlockID
              - …
            - `timestamp` string, date-time
            - `validator_address` string, byte
            - `validator_index` integer
            - `signature` string, byte — Vote signature by the validator if they participated in consensus for the associated block.
            - `extension` string, byte — Vote extension provided by the application. Only valid for precommit messages.
            - `extension_signature` string, byte — Vote extension signature by the validator if they participated in consensus for the associated block. Only valid for precommit messages.
          - `total_voting_power` string, int64
          - `validator_power` string, int64
          - `timestamp` string, date-time
        - `light_client_attack_evidence` TendermintTypesLightClientAttackEvidence — LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.
          - `conflicting_block` TendermintTypesLightBlock
            - `signed_header` TendermintTypesSignedHeader
              - …
            - `validator_set` TendermintTypesValidatorSet
              - …
          - `common_height` string, int64
          - `byzantine_validators` TendermintTypesValidator[]
            - `address` string, byte
            - `pub_key` TendermintCryptoPublicKey
              - …
            - `voting_power` string, int64
            - `proposer_priority` string, int64
          - `total_voting_power` string, int64
          - `timestamp` string, date-time
    - `last_commit` TendermintTypesCommit — Commit contains the evidence that a block was committed by a set of validators.
      - `height` string, int64
      - `round` integer
      - `block_id` TendermintTypesBlockID
        - `hash` string, byte
        - `part_set_header` TendermintTypesPartSetHeader
          - `total` integer
          - `hash` string, byte
      - `signatures` TendermintTypesCommitSig[]
        - `block_id_flag` 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL' — - BLOCK_ID_FLAG_UNKNOWN: indicates an error condition - BLOCK_ID_FLAG_ABSENT: the vote was not received - BLOCK_ID_FLAG_COMMIT: voted for the block that received the majority - BLOCK_ID_FLAG_NIL: voted for nil
        - `validator_address` string, byte
        - `timestamp` string, date-time
        - `signature` string, byte

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/coreumfoundation/apis/title-goes-here.md) · [All operations](https://skmtc.net/coreumfoundation/apis/title-goes-here/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coreumfoundation/title-goes-here/revisions/2a2e5bc4593a/schema)
