> ## 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 hash of the current Bitcoin block at the tip of the longest chain.

# Block Tip Hash



## OpenAPI

````yaml bitcoin/esplora-api/openapi.json get /blocks/tip/hash
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:
  /blocks/tip/hash:
    get:
      tags:
        - Blocks
      summary: Block Tip Hash
      description: Returns the hash of the last block.
      responses:
        '200':
          description: Block hash string of the latest block
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/BlockHash'
components:
  schemas:
    BlockHash:
      type: string
      description: SHA-256 hash of the latest block
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: api-key
      description: Project API Key

````