> ## 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 confirmation status of a Bitcoin transaction including block height and confirmation count.

# Transaction Status



## OpenAPI

````yaml bitcoin/esplora-api/openapi.json get /tx/{txid}/status
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:
  /tx/{txid}/status:
    get:
      tags:
        - Transactions
      summary: Transaction Status
      description: >-
        Returns the confirmation status of a transaction. Available fields:
        confirmed (boolean), block_height (optional), and block_hash (optional).
      parameters:
        - name: txid
          in: path
          required: true
          description: Transaction ID to query.
          schema:
            type: string
            example: d78b1139140848e646cfd7eb95868d2e01c600c3922de88038c591d2fb55cf96
      responses:
        '200':
          description: Transaction confirmation status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionStatus'
              examples:
                confirmed:
                  value:
                    confirmed: true
                    block_height: 776402
                    block_hash: >-
                      000000000000000000015fc7f9e5caa8b2e7cbfc7c8075c23f8c86f1aaed18e6
                unconfirmed:
                  value:
                    confirmed: false
        '404':
          description: Transaction not found
components:
  schemas:
    TransactionStatus:
      type: object
      properties:
        confirmed:
          type: boolean
          description: Transaction confirmation status.
        block_height:
          type: integer
          nullable: true
        block_hash:
          type: string
          nullable: true
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: api-key
      description: Project API Key

````