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

- Base URL: `https://api.nymtech.net` (the document declares no server; this is the origin it was published from)
- URL: `https://api.nymtech.net/cosmos/base/tendermint/v1beta1/blocks/latest`
- Auth: none declared
- TypeScript: <https://skmtc.dev/nymtech/apis/cosmos-sdk-grpc-gateway-docs/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.

- object: GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
  - `block_id` object
    - `hash` string, byte
    - `part_set_header` object
      - `total` integer
      - `hash` string, byte
  - `block` object
    - `header` object: Header defines the structure of a block header.
      - `version` object: 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` object
        - `hash` string, byte
        - `part_set_header` object
          - `total` integer
          - `hash` string, byte
      - `last_commit_hash` string, byte
      - `data_hash` string, byte
      - `validators_hash` string, byte
      - `next_validators_hash` string, byte
      - `consensus_hash` string, byte
      - `app_hash` string, byte
      - `last_results_hash` string, byte
      - `evidence_hash` string, byte
      - `proposer_address` string, byte
    - `data` object
      - `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` object
      - `evidence` object[]
        - `duplicate_vote_evidence` object: DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.
          - `vote_a` object: 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` object
              - …
            - `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` object: 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` object
              - …
            - `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` object: LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.
          - `conflicting_block` object
            - `signed_header` object
              - …
            - `validator_set` object
              - …
          - `common_height` string, int64
          - `byzantine_validators` object[]
            - `address` string, byte
            - `pub_key` object
              - …
            - `voting_power` string, int64
            - `proposer_priority` string, int64
          - `total_voting_power` string, int64
          - `timestamp` string, date-time
    - `last_commit` object: Commit contains the evidence that a block was committed by a set of validators.
      - `height` string, int64
      - `round` integer
      - `block_id` object
        - `hash` string, byte
        - `part_set_header` object
          - `total` integer
          - `hash` string, byte
      - `signatures` object[]
        - `block_id_flag` 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'
        - `validator_address` string, byte
        - `timestamp` string, date-time
        - `signature` string, byte
  - `sdk_block` object: Block is tendermint type Block, with the Header proposer address field converted to bech32 string.
    - `header` object: Header defines the structure of a Tendermint block header.
      - `version` object: 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` object
        - `hash` string, byte
        - `part_set_header` object
          - `total` integer
          - `hash` string, byte
      - `last_commit_hash` string, byte
      - `data_hash` string, byte
      - `validators_hash` string, byte
      - `next_validators_hash` string, byte
      - `consensus_hash` string, byte
      - `app_hash` string, byte
      - `last_results_hash` string, byte
      - `evidence_hash` string, byte
      - `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.
    - `data` object
      - `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` object
      - `evidence` object[]
        - `duplicate_vote_evidence` object: DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.
          - `vote_a` object: 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` object
              - …
            - `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` object: 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` object
              - …
            - `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` object: LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.
          - `conflicting_block` object
            - `signed_header` object
              - …
            - `validator_set` object
              - …
          - `common_height` string, int64
          - `byzantine_validators` object[]
            - `address` string, byte
            - `pub_key` object
              - …
            - `voting_power` string, int64
            - `proposer_priority` string, int64
          - `total_voting_power` string, int64
          - `timestamp` string, date-time
    - `last_commit` object: Commit contains the evidence that a block was committed by a set of validators.
      - `height` string, int64
      - `round` integer
      - `block_id` object
        - `hash` string, byte
        - `part_set_header` object
          - `total` integer
          - `hash` string, byte
      - `signatures` object[]
        - `block_id_flag` 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'
        - `validator_address` string, byte
        - `timestamp` string, date-time
        - `signature` string, byte

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/nymtech/apis/cosmos-sdk-grpc-gateway-docs.md) - [All operations](https://skmtc.dev/nymtech/apis/cosmos-sdk-grpc-gateway-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/nymtech/apis/cosmos-sdk-grpc-gateway-docs/revisions/46fa771059b6?raw)
