> ## 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 transaction ID at a specific index position within a Bitcoin block for direct transaction access.

# Block Transaction ID



## OpenAPI

````yaml bitcoin/esplora-api/openapi.json get /block/{hash}/txid/{index}
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}/txid/{index}:
    get:
      tags:
        - Blocks
      summary: Block Transaction ID
      description: Returns the transaction at index :index within the specified block.
      parameters:
        - name: hash
          in: path
          required: true
          description: The block hash.
          schema:
            type: string
            example: 00000000000000000001b9dca5d168a8e959df258814beec486572e843fddee5
        - name: index
          in: path
          required: true
          description: The transaction index within the block.
          schema:
            type: integer
            minimum: 0
      responses:
        '200':
          description: Transaction ID at the specified index
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionId'
        '400':
          description: Invalid block hash or index
        '404':
          description: Block or transaction not found
components:
  schemas:
    TransactionId:
      type: string
      description: A Bitcoin transaction ID (txid)
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: api-key
      description: Project API Key

````