> ## 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 detailed information about a specific Bitcoin block including header data, transactions, and statistics.

# Block



## OpenAPI

````yaml bitcoin/esplora-api/openapi.json get /block/{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:
  /block/{hash}:
    get:
      tags:
        - Blocks
      summary: Block
      description: Returns details about a block.
      parameters:
        - name: hash
          in: path
          required: true
          schema:
            type: string
            example: 00000000000000000001b9dca5d168a8e959df258814beec486572e843fddee5
          description: The block hash to retrieve information for.
      responses:
        '200':
          description: Block metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Block'
        '404':
          description: Block not found
components:
  schemas:
    Block:
      type: object
      properties:
        id:
          type: string
          description: Block hash
        height:
          type: integer
        version:
          type: integer
        timestamp:
          type: integer
        mediantime:
          type: integer
        bits:
          type: integer
        nonce:
          type: integer
        difficulty:
          type: number
        merkle_root:
          type: string
        tx_count:
          type: integer
        size:
          type: integer
        weight:
          type: integer
        previousblockhash:
          type: string
        extras:
          type: object
          description: Optional explorer-specific metadata
      required:
        - id
        - height
        - version
        - timestamp
        - bits
        - nonce
        - merkle_root
        - tx_count
        - size
        - weight
        - previousblockhash
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: api-key
      description: Project API Key

````