> ## 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 raw binary data of a Bitcoin block in hexadecimal format for parsing and analysis.

# Block Raw



## OpenAPI

````yaml bitcoin/esplora-api/openapi.json get /block/{hash}/raw
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}/raw:
    get:
      tags:
        - Blocks
      summary: Block Raw
      description: Returns the raw block representation in binary.
      parameters:
        - name: hash
          in: path
          required: true
          description: The hash of the block
          schema:
            type: string
            example: 00000000000000000001b9dca5d168a8e959df258814beec486572e843fddee5
      responses:
        '200':
          description: Raw block data in binary format
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '400':
          description: Invalid block hash
        '404':
          description: Block not found
components:
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: api-key
      description: Project API Key

````