> ## 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 information about how a specific Bitcoin transaction output was spent in subsequent transactions.

# Transaction Outspend



## OpenAPI

````yaml bitcoin/esplora-api/openapi.json get /tx/{txid}/outspend/{vout}
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}/outspend/{vout}:
    get:
      tags:
        - Transactions
      summary: Transaction Outspend
      description: >-
        Returns the spending status of a transaction output. Available fields:
        spent (boolean), txid (optional), vin (optional), and status (optional,
        the status of the spending tx).
      parameters:
        - name: txid
          in: path
          required: true
          schema:
            type: string
            example: d78b1139140848e646cfd7eb95868d2e01c600c3922de88038c591d2fb55cf96
          description: Transaction ID of the parent transaction.
        - name: vout
          in: path
          required: true
          schema:
            type: integer
            example: 0
          description: The output index within the transaction.
      responses:
        '200':
          description: Spending status of the transaction output.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TxOutspend'
              examples:
                spent:
                  value:
                    spent: true
                    txid: abcdef123456...
                    vin: 1
                    status:
                      confirmed: true
                      block_height: 786000
                      block_hash: 0000000000000000000abc...
                      block_time: 1700000000
                unspent:
                  value:
                    spent: false
        '404':
          description: Transaction or output not found.
components:
  schemas:
    TxOutspend:
      type: object
      properties:
        spent:
          type: boolean
          description: Whether the output has been spent.
        txid:
          type: string
          description: Transaction ID of the spending transaction.
          nullable: true
        vin:
          type: integer
          description: Index of the input in the spending transaction.
          nullable: true
        status:
          type: object
          description: Confirmation status of the spending transaction.
          nullable: true
          properties:
            confirmed:
              type: boolean
            block_height:
              type: integer
            block_hash:
              type: string
            block_time:
              type: integer
      required:
        - spent
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: api-key
      description: Project API Key

````