> ## 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 transaction including inputs, outputs, and fees.

# Transaction



## OpenAPI

````yaml bitcoin/esplora-api/openapi.json get /tx/{txid}
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}:
    get:
      tags:
        - Transactions
      summary: Transaction
      description: >-
        Returns details about a transaction. Available fields: txid, version,
        locktime, size, weight, fee, vin, vout, and status.
      parameters:
        - name: txid
          in: path
          required: true
          schema:
            type: string
            example: d78b1139140848e646cfd7eb95868d2e01c600c3922de88038c591d2fb55cf96
          description: The transaction ID to look up.
      responses:
        '200':
          description: Transaction details retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transaction'
        '404':
          description: Transaction not found
components:
  schemas:
    Transaction:
      type: object
      properties:
        txid:
          type: string
        version:
          type: integer
        locktime:
          type: integer
        size:
          type: integer
        weight:
          type: integer
        fee:
          type: integer
        vin:
          type: array
          items:
            type: object
            properties:
              txid:
                type: string
              vout:
                type: integer
              is_coinbase:
                type: boolean
              scriptsig:
                type: string
              scriptsig_asm:
                type: string
              sequence:
                type: integer
              witness:
                type: array
                items:
                  type: string
              prevout:
                type: object
                properties:
                  scriptpubkey:
                    type: string
                  scriptpubkey_asm:
                    type: string
                  scriptpubkey_type:
                    type: string
                  scriptpubkey_address:
                    type: string
                  value:
                    type: integer
        vout:
          type: array
          items:
            type: object
            properties:
              scriptpubkey:
                type: string
              scriptpubkey_asm:
                type: string
              scriptpubkey_type:
                type: string
              scriptpubkey_address:
                type: string
              value:
                type: integer
        status:
          type: object
          properties:
            confirmed:
              type: boolean
            block_height:
              type: integer
            block_hash:
              type: string
            block_time:
              type: integer
      required:
        - txid
        - vin
        - vout
        - status
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: api-key
      description: Project API Key

````