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

> Get the block hash for a Bitcoin block at a specific height in the blockchain.

# Block Height



## OpenAPI

````yaml bitcoin/esplora-api/openapi.json get /block-height/{height}
openapi: 3.0.3
info:
  title: Bitcoin - Esplora API
  version: 1.0.0
  description: >
    OpenAPI spec for core Esplora endpoints: blocks, transactions, addresses,
    mempool, fees, UTXO data and more.
servers:
  - url: https://xbt-mainnet.gomaestro-api.org/v0/esplora
  - url: https://xbt-testnet.gomaestro-api.org/v0/esplora
security:
  - api-key: []
paths:
  /block-height/{height}:
    get:
      tags:
        - Blocks
      summary: Block Height
      description: Returns the hash of the block currently at :height.
      parameters:
        - name: height
          in: path
          required: true
          schema:
            type: integer
            example: 804000
          description: The height of the block.
      responses:
        '200':
          description: Block hash as plain text.
          content:
            text/plain:
              schema:
                type: string
                example: >-
                  00000000000000000001b9dca5d168a8e959df258814beec486572e843fddee5
        '400':
          description: Invalid block height supplied.
        '404':
          description: Block not found for the given height.
components:
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: api-key
      description: Project API Key

````