---
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`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/docs/cosmos/base/tendermint/v1beta1/blocks/latest/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

A successful response.

- CosmosBaseTendermintV1beta1GetLatestBlockResponse: GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
  - `blockId` TendermintTypesBlockID
    - `hash` string, byte
    - `partSetHeader` 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
      - `chainId` string
      - `height` string, int64
      - `time` string, date-time
      - `lastBlockId` TendermintTypesBlockID
        - `hash` string, byte
        - `partSetHeader` TendermintTypesPartSetHeader
          - `total` integer
          - `hash` string, byte
      - `lastCommitHash` string, byte: commit from validators from the last block
      - `dataHash` string, byte
      - `validatorsHash` string, byte: validators for the current block
      - `nextValidatorsHash` string, byte
      - `consensusHash` string, byte
      - `appHash` string, byte
      - `lastResultsHash` string, byte
      - `evidenceHash` string, byte: evidence included in the block
      - `proposerAddress` 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[]
        - `duplicateVoteEvidence` TendermintTypesDuplicateVoteEvidence: DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.
          - `voteA` 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
            - `blockId` TendermintTypesBlockID
              - …
            - `timestamp` string, date-time
            - `validatorAddress` string, byte
            - `validatorIndex` 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.
            - `extensionSignature` string, byte: Vote extension signature by the validator if they participated in consensus for the associated block. Only valid for precommit messages.
          - `voteB` 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
            - `blockId` TendermintTypesBlockID
              - …
            - `timestamp` string, date-time
            - `validatorAddress` string, byte
            - `validatorIndex` 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.
            - `extensionSignature` string, byte: Vote extension signature by the validator if they participated in consensus for the associated block. Only valid for precommit messages.
          - `totalVotingPower` string, int64
          - `validatorPower` string, int64
          - `timestamp` string, date-time
        - `lightClientAttackEvidence` TendermintTypesLightClientAttackEvidence: LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.
          - `conflictingBlock` TendermintTypesLightBlock
            - `signedHeader` TendermintTypesSignedHeader
              - …
            - `validatorSet` TendermintTypesValidatorSet
              - …
          - `commonHeight` string, int64
          - `byzantineValidators` TendermintTypesValidator[]
            - `address` string, byte
            - `pubKey` TendermintCryptoPublicKey
              - …
            - `votingPower` string, int64
            - `proposerPriority` string, int64
          - `totalVotingPower` string, int64
          - `timestamp` string, date-time
    - `lastCommit` TendermintTypesCommit: Commit contains the evidence that a block was committed by a set of validators.
      - `height` string, int64
      - `round` integer
      - `blockId` TendermintTypesBlockID
        - `hash` string, byte
        - `partSetHeader` TendermintTypesPartSetHeader
          - `total` integer
          - `hash` string, byte
      - `signatures` TendermintTypesCommitSig[]
        - `blockIdFlag` '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
        - `validatorAddress` string, byte
        - `timestamp` string, date-time
        - `signature` string, byte
  - `sdkBlock` 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
      - `chainId` string
      - `height` string, int64
      - `time` string, date-time
      - `lastBlockId` TendermintTypesBlockID
        - `hash` string, byte
        - `partSetHeader` TendermintTypesPartSetHeader
          - `total` integer
          - `hash` string, byte
      - `lastCommitHash` string, byte: commit from validators from the last block
      - `dataHash` string, byte
      - `validatorsHash` string, byte: validators for the current block
      - `nextValidatorsHash` string, byte
      - `consensusHash` string, byte
      - `appHash` string, byte
      - `lastResultsHash` string, byte
      - `evidenceHash` string, byte: evidence included in the block
      - `proposerAddress` 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[]
        - `duplicateVoteEvidence` TendermintTypesDuplicateVoteEvidence: DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.
          - `voteA` 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
            - `blockId` TendermintTypesBlockID
              - …
            - `timestamp` string, date-time
            - `validatorAddress` string, byte
            - `validatorIndex` 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.
            - `extensionSignature` string, byte: Vote extension signature by the validator if they participated in consensus for the associated block. Only valid for precommit messages.
          - `voteB` 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
            - `blockId` TendermintTypesBlockID
              - …
            - `timestamp` string, date-time
            - `validatorAddress` string, byte
            - `validatorIndex` 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.
            - `extensionSignature` string, byte: Vote extension signature by the validator if they participated in consensus for the associated block. Only valid for precommit messages.
          - `totalVotingPower` string, int64
          - `validatorPower` string, int64
          - `timestamp` string, date-time
        - `lightClientAttackEvidence` TendermintTypesLightClientAttackEvidence: LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.
          - `conflictingBlock` TendermintTypesLightBlock
            - `signedHeader` TendermintTypesSignedHeader
              - …
            - `validatorSet` TendermintTypesValidatorSet
              - …
          - `commonHeight` string, int64
          - `byzantineValidators` TendermintTypesValidator[]
            - `address` string, byte
            - `pubKey` TendermintCryptoPublicKey
              - …
            - `votingPower` string, int64
            - `proposerPriority` string, int64
          - `totalVotingPower` string, int64
          - `timestamp` string, date-time
    - `lastCommit` TendermintTypesCommit: Commit contains the evidence that a block was committed by a set of validators.
      - `height` string, int64
      - `round` integer
      - `blockId` TendermintTypesBlockID
        - `hash` string, byte
        - `partSetHeader` TendermintTypesPartSetHeader
          - `total` integer
          - `hash` string, byte
      - `signatures` TendermintTypesCommitSig[]
        - `blockIdFlag` '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
        - `validatorAddress` string, byte
        - `timestamp` string, date-time
        - `signature` string, byte

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api.md) - [All operations](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/llms.txt) - [OpenAPI document](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/revisions/2d0419923f40?raw)
