> ## 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 list of Bitcoin blocks starting from a specific height with pagination support for blockchain exploration.

# Blocks



## OpenAPI

````yaml bitcoin/esplora-api/openapi.json get /blocks/{start_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:
  /blocks/{start_height}:
    get:
      tags:
        - Blocks
      summary: Blocks
      description: >-
        Returns details on the past 10 blocks. If :startHeight is specified, the
        10 blocks before (and including) :startHeight are returned.
      parameters:
        - name: start_height
          in: path
          required: false
          schema:
            type: integer
          description: The block height to start from.
      responses:
        '200':
          description: A list of 10 blocks starting from the given height
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Block'
        '400':
          description: Invalid block height
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

````