> ## 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 all outputs of a Bitcoin transaction were spent in subsequent transactions.

# Transaction Outspends



## OpenAPI

````yaml bitcoin/esplora-api/openapi.json get /tx/{txid}/outspends
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}/outspends:
    get:
      tags:
        - Transactions
      summary: Transaction Outspends
      description: Returns the spending status of all transaction outputs.
      parameters:
        - name: txid
          in: path
          required: true
          description: The transaction ID (txid) to query.
          schema:
            type: string
            example: d78b1139140848e646cfd7eb95868d2e01c600c3922de88038c591d2fb55cf96
      responses:
        '200':
          description: Spending status for each output in the transaction.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Outspend'
              examples:
                example:
                  value:
                    - spent: true
                      txid: 1a2b3c...
                      vin: 0
                      status:
                        confirmed: true
                        block_height: 776300
                        block_hash: 0000000000000000000b4d0a...
                        block_time: 1686300000
                    - spent: false
        '404':
          description: Transaction not found.
components:
  schemas:
    Outspend:
      type: object
      properties:
        spent:
          type: boolean
          description: Indicates whether this output has been spent.
        txid:
          type: string
          nullable: true
          description: The transaction ID that spent this output, if any.
        vin:
          type: integer
          nullable: true
          description: The input index in the spending transaction.
        status:
          type: object
          nullable: true
          description: Status of the spending transaction.
          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

````