> ## 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 Bitcoin transaction information including inputs, outputs, fees, and confirmation status by transaction hash.

# Transaction Info



## OpenAPI

````yaml bitcoin/blockchain-indexer-api/openapi.json get /transactions/{tx_hash}
openapi: 3.0.3
info:
  title: Bitcoin - Blockchain Indexer API
  description: >-
    This API provides core indexer endpoints with support for Bitcoin
    metaprotocols by delivering real-time, rollback-protected access to
    Bitcoin's UTXO data, enabling developers to build responsive and reliable
    blockchain applications without managing complex infrastructure.


    #### Key Features:

    - **Real-Time Data with Rollback Protection:** Ensures data accuracy by
    handling chain reorganizations gracefully, providing live data without
    sacrificing integrity.

    - **Comprehensive UTXO Indexing:** Specialized pipelines extract, match, and
    process on-chain information, including handling rollbacks, to provide
    accurate and up-to-date data.


    #### Key Benefits for Developers:

    By abstracting the complexities of blockchain data retrieval and processing,
    Maestro's Bitcoin Indexer API empowers developers to focus on building
    innovative applications with confidence in fast and reliable access to
    historical chain data.
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.txt
  version: v0.2.0
servers:
  - url: https://xbt-mainnet.gomaestro-api.org/v0
    description: Bitcoin Mainnet
  - url: https://xbt-testnet.gomaestro-api.org/v0
    description: Bitcoin Testnet
security:
  - api-key: []
paths:
  /transactions/{tx_hash}:
    get:
      tags:
        - Transactions
      summary: Transaction Info
      description: >-
        Returns a full breakdown of a Bitcoin transaction by its hash. Includes
        inputs, outputs, fees, block confirmation details, and protocol-specific
        data (e.g., Ordinals, Runes, BRC20). This is useful for explorers, audit
        tools, or any application requiring full visibility into how funds and
        inscriptions are moved.
      operationId: tx_info
      parameters:
        - name: tx_hash
          in: path
          description: Transaction hash
          required: true
          schema:
            type: string
          example: 123828d4f3afe397a9e512b910c54fa3ea6288b7c26796e601be6be8bc2d572b
      responses:
        '200':
          description: Requested data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimestampedTxInfo'
              example:
                data:
                  block_hash: >-
                    0000000000000000000224d324bbb5df0e74e202d9ccf752d76341046fab3ec0
                  confirmations: 20035
                  fees: '8000'
                  height: 855413
                  inputs:
                    - address: bc1qtlvtyurmupvg0g0a9tg0799hp3uwncj0wlg429
                      satoshis: '546'
                      script_pubkey: 00145fd8b2707be05887a1fd2ad0ff14b70c78e9e24f
                      txid: >-
                        54f5c0dba6874d5d7305e108cba2c903145886bccb35e964f2a9b5063dd28f11
                      vout: 1
                    - address: bc1q6kxj39dwva5xfv5278vcp3uhmql567qlpldtcr
                      satoshis: '291872'
                      script_pubkey: 0014d58d2895ae676864b28af1d980c797d83f4d781f
                      txid: >-
                        d4c93d92f6704bf48dc693b92efa9b0675a6f6d171bdedb90cbf0f64f50749bb
                      vout: 3
                  metaprotocols:
                    - inscriptions
                    - runes
                    - brc20
                  outputs:
                    - address: null
                      satoshis: '0'
                      script_pubkey: 6a5d0b00c0a23303a9878cc30d01
                      spending_tx: null
                    - address: bc1qj7dam98j6ktjcp320qu77y2vrylv49c2k2hkmu
                      satoshis: '546'
                      script_pubkey: 0014979bdd94f2d5972c062a7839ef114c193eca970a
                      spending_tx: >-
                        794c74fcf67db3a2bf5c517a5fbc073f087b476c6c5bc7e25f01178aca739451
                    - address: bc1q6kxj39dwva5xfv5278vcp3uhmql567qlpldtcr
                      satoshis: '283872'
                      script_pubkey: 0014d58d2895ae676864b28af1d980c797d83f4d781f
                      spending_tx: >-
                        68337ace84eb959c98139aa6b43b642539622fa58d45d4362464edc2df26ea82
                  sats_per_vb: 35
                  timestamp: '2024-08-04 23:38:20'
                  tx_index: 18
                  unix_timestamp: 1722814700
                  volume: '284418'
                last_updated:
                  block_hash: >-
                    00000000000000000000c0ab8525c3e1839e991ff6e06665d206370133ca2c96
                  block_height: 875448
        '400':
          description: Malformed query parameters
        '404':
          description: Requested entity not found on-chain
        '500':
          description: Internal server error
components:
  schemas:
    TimestampedTxInfo:
      type: object
      required:
        - data
        - last_updated
      properties:
        data:
          $ref: '#/components/schemas/TxInfo'
        last_updated:
          $ref: '#/components/schemas/ChainTip'
    TxInfo:
      type: object
      required:
        - height
        - block_hash
        - confirmations
        - unix_timestamp
        - timestamp
        - tx_index
        - volume
        - fees
        - sats_per_vb
        - metaprotocols
        - inputs
        - outputs
      properties:
        block_hash:
          type: string
          description: Block hash.
          example: 0000000000000000000290db65621592a96224ecbe92ae22532a35dc40213471
        confirmations:
          type: integer
          format: int64
          description: Number of confirmations of the block.
          example: 3
          minimum: 0
        fees:
          type: string
          description: Fees paid to the miner.
          example: '2504'
        height:
          type: integer
          format: int64
          description: Block height.
          example: 875075
          minimum: 0
        inputs:
          type: array
          items:
            $ref: '#/components/schemas/TxIn'
          description: List of inputs, in the same order as the transaction.
        metaprotocols:
          type: array
          items:
            $ref: '#/components/schemas/Metaprotocol'
          description: >-
            List of supported metaprotocols involved in the transaction. Runes:
            etching, mint or edicts. Inscriptions: create or transfer. BRC-20
            tokens: deploy, mint, transfer init or transfer.
        outputs:
          type: array
          items:
            $ref: '#/components/schemas/TxOut'
          description: List of outputs, in the same order as the transaction.
        sats_per_vb:
          type: integer
          format: int64
          description: sats per vB of the transaction.
          example: 15
          minimum: 0
        timestamp:
          type: string
          description: The timestamp of the block, as claimed by the miner, in UTC format.
          example: '2024-12-16 22:48:06'
        tx_index:
          type: integer
          format: int32
          description: Index of transaction in block.
          example: 123
          minimum: 0
        unix_timestamp:
          type: integer
          format: int32
          description: The timestamp of the block, as claimed by the miner.
          example: 1734389286
          minimum: 0
        volume:
          type: string
          description: >-
            Total number of satoshis that went through this transaction, minus
            fees.
          example: '12345678'
    ChainTip:
      type: object
      required:
        - block_hash
        - block_height
      properties:
        block_hash:
          type: string
          description: The hash of the block
          example: 0000000000000000000a7f3b7b6b6e1d9a18db65a3b4a3f4f3bcb2e1f1b2d3e7
        block_height:
          type: integer
          format: int64
          description: The height of the block in the blockchain
          example: 707000
          minimum: 0
    TxIn:
      type: object
      required:
        - txid
        - vout
        - script_pubkey
        - satoshis
      properties:
        address:
          type: string
          description: Address-encoding of the script pubkey at which the input resides.
          example: bc1p5u4y8vdhn46adxhfv5scfv4c8myykw6r5uyzlavm42k4wgjewktq7xqcyr
          nullable: true
        satoshis:
          type: string
          description: Total number of satoshis in the UTxO.
          example: '1234567'
        script_pubkey:
          type: string
          description: Script pubkey at which the input resides.
          example: 5120a72a43b1b79d75d69ae9652184b2b83ec84b3b43a7082ff59baaad5722597596
        txid:
          type: string
          description: Transaction hash of the UTxO.
          example: 2ca28d42583fc5bace84fe024d3697969e06dd1cf769a2141286825b81773fd5
        vout:
          type: integer
          format: int32
          description: Output index of the UTxO.
          example: 0
          minimum: 0
    Metaprotocol:
      type: string
      enum:
        - inscriptions
        - runes
        - brc20
    TxOut:
      type: object
      required:
        - script_pubkey
        - satoshis
      properties:
        address:
          type: string
          description: >-
            Address-encoding of the script pubkey at which the output containing
            the inscription resides.
          example: bc1ppth27qnr74qhusy9pmcyeaelgvsfky6qzquv9nf56gqmte59vfhqwkqguh
          nullable: true
        satoshis:
          type: string
          description: Total number of satoshis in the UTxO.
          example: '1234567'
        script_pubkey:
          type: string
          description: >-
            Script pubkey at which the output containing the inscription
            resides.
          example: 51200aeeaf0263f5417e40850ef04cf73f43209b13401038c2cd34d201b5e685626e
        spending_tx:
          type: string
          description: >-
            If this output is known to have been spent, hash of the transaction
            that spent it.
          example: 2ca28d42583fc5bace84fe024d3697969e06dd1cf769a2141286825b81773fd5
          nullable: true
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: api-key
      description: Project API Key

````