> ## Documentation Index
> Fetch the complete documentation index at: https://docs.initia.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Get block by height

> Returns a specific block by its height.



## OpenAPI

````yaml /api-reference/rollup-indexer/openapi.yaml get /indexer/block/v1/blocks/{height}
openapi: 3.1.0
info:
  title: Indexer API
  description: >-
    Query indexed data including transactions, blocks, NFTs, and token holders
    across Initia Stack chains.
  version: 1.0.0
servers:
  - url: https://rollytics-api-evm-1.anvil.asia-southeast.initia.xyz
    description: evm-1 (testnet)
  - url: https://rollytics-api-move-1.anvil.asia-southeast.initia.xyz
    description: move-1 (testnet)
  - url: https://rollytics-api-wasm-1.anvil.asia-southeast.initia.xyz
    description: wasm-1 (testnet)
security: []
paths:
  /indexer/block/v1/blocks/{height}:
    get:
      tags:
        - Blocks
      summary: Get block by height
      description: Returns a specific block by its height.
      operationId: getBlockByHeight
      parameters:
        - name: height
          in: path
          description: The block height.
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  block:
                    $ref: '#/components/schemas/Block'
        '404':
          description: Block not found
components:
  schemas:
    Block:
      type: object
      properties:
        chain_id:
          type: string
          description: The chain identifier.
        height:
          type: string
          description: Block height.
        hash:
          type: string
          description: Block hash (hex-encoded).
        block_time:
          type: string
          description: Time between this block and the previous block, in milliseconds.
        timestamp:
          type: string
          description: Block timestamp in RFC 3339 format.
        gas_used:
          type: string
          description: Total gas used in this block.
        gas_wanted:
          type: string
          description: Total gas requested in this block.
        tx_count:
          type: string
          description: Number of transactions in this block.
        total_fee:
          type: array
          description: Total fees collected in this block.
          items:
            type: object
            properties:
              denom:
                type: string
                description: Fee denomination.
              amount:
                type: string
                description: Fee amount.
        proposer:
          type: object
          description: Block proposer information.
          properties:
            moniker:
              type: string
              description: Validator moniker.
            identity:
              type: string
              description: Validator identity.
            operator_address:
              type: string
              description: Validator operator address.

````