> ## 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.

> Decode a Partially Signed Bitcoin Transaction (PSBT) to analyze inputs, outputs, and signing requirements.

# Decode PSBT



## OpenAPI

````yaml bitcoin/node-rpc-api/openapi.json post /transaction/psbt/decode
openapi: 3.1.0
info:
  description: >-
    This API offers direct, low-latency access to Bitcoin full nodes via API
    (JSON-RPC protocol), giving developers reliable mempool visibility,
    transaction relay capabilities, and chain data without the hassle of running
    their own infrastructure.


    #### Key Features:

    - **Full JSON-RPC Support:** Access core Bitcoin functionality through RPC
    calls like `getblock`, `getrawtransaction`, `sendrawtransaction`, etc.

    - **Blockchain Data Retrieval:** Developers can fetch detailed information
    about blocks, transactions, and addresses.

    - **Mempool Insight:** Query unconfirmed transactions for faster, more
    responsive, real-time data access.

    - **High-Availability**: Enterprise-grade infrastructure ensures uptime,
    sync accuracy and fast transaction relay.


    #### Key Benefits for Developers:

    - Skip the operational complexity and computational overhead of maintaining
    self-hosted Bitcoin nodes.

    - Query mempool and chain data to power wallets, explorers, and backends
    with minimal latency.

    - Broadcast and verify transactions with trusted relay endpoints.

    - Build production-ready Bitcoin apps without worrying about node health,
    bandwidth, or reorg handling.
  title: Bitcoin - Node RPC API
  version: 0.1.1
servers:
  - description: Bitcoin Mainnet
    url: https://xbt-mainnet.gomaestro-api.org/v0/rpc
  - description: Bitcoin Testnet
    url: https://xbt-testnet.gomaestro-api.org/v0/rpc
security:
  - api-key: []
externalDocs:
  description: ''
  url: ''
paths:
  /transaction/psbt/decode:
    post:
      tags:
        - Transactions
      summary: Decode PSBT
      description: >-
        Takes a signed PSBT hex and returns the internal structure. Covers UTXO
        metadata, BIP32 deriv paths, inputs/outputs, etc.

        Useful for hardware wallet or multisig integrations.
      operationId: rpc_psbt_decode
      requestBody:
        content:
          application/json:
            schema:
              type: string
        description: Signed PSBT Hex.
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_bitcoin.PSBTResponseBody'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_bitcoin.NodeRPCError'
          description: Node RPC error.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_bitcoin.APIError'
          description: Internal server error.
components:
  schemas:
    api_bitcoin.PSBTResponseBody:
      properties:
        data:
          $ref: '#/components/schemas/api_bitcoin.PSBT'
        last_updated:
          $ref: '#/components/schemas/api_bitcoin.LastUpdatedBlock'
      type: object
    api_bitcoin.NodeRPCError:
      properties:
        code:
          description: Error code returned from the API request
          example: 0
          type: integer
        node rpc error:
          description: Error returned from the API request
          example: node rpc error
          type: string
      type: object
    api_bitcoin.APIError:
      properties:
        error:
          description: Error returned from the API request
          example: Bad Request
          type: string
      type: object
    api_bitcoin.PSBT:
      properties:
        fee:
          type: number
        global_xpubs:
          items: {}
          type: array
          uniqueItems: false
        inputs:
          items:
            properties:
              bip32_derivs:
                items:
                  properties:
                    master_fingerprint:
                      type: string
                    path:
                      type: string
                    pubkey:
                      type: string
                  type: object
                type: array
                uniqueItems: false
              non_witness_utxo:
                properties:
                  hash:
                    type: string
                  locktime:
                    type: integer
                  size:
                    type: integer
                  txid:
                    type: string
                  version:
                    type: integer
                  vin:
                    items:
                      properties:
                        scriptSig:
                          properties:
                            asm:
                              type: string
                            hex:
                              type: string
                          type: object
                        sequence:
                          type: integer
                        txid:
                          type: string
                        vout:
                          type: integer
                      type: object
                    type: array
                    uniqueItems: false
                  vout:
                    items:
                      properties:
                        'n':
                          type: integer
                        scriptPubKey:
                          properties:
                            address:
                              type: string
                            asm:
                              type: string
                            desc:
                              type: string
                            hex:
                              type: string
                            type:
                              type: string
                          type: object
                        value:
                          type: number
                      type: object
                    type: array
                    uniqueItems: false
                  vsize:
                    type: integer
                  weight:
                    type: integer
                type: object
              witness_utxo:
                properties:
                  amount:
                    type: number
                  scriptPubKey:
                    properties:
                      address:
                        type: string
                      asm:
                        type: string
                      desc:
                        type: string
                      hex:
                        type: string
                      type:
                        type: string
                    type: object
                type: object
            type: object
          type: array
          uniqueItems: false
        outputs:
          items:
            properties:
              bip32_derivs:
                items:
                  properties:
                    master_fingerprint:
                      type: string
                    path:
                      type: string
                    pubkey:
                      type: string
                  type: object
                type: array
                uniqueItems: false
            type: object
          type: array
          uniqueItems: false
        proprietary:
          items: {}
          type: array
          uniqueItems: false
        psbt_version:
          type: integer
        tx:
          properties:
            hash:
              type: string
            locktime:
              type: integer
            size:
              type: integer
            txid:
              type: string
            version:
              type: integer
            vin:
              items:
                properties:
                  scriptSig:
                    properties:
                      asm:
                        type: string
                      hex:
                        type: string
                    type: object
                  sequence:
                    type: integer
                  txid:
                    type: string
                  vout:
                    type: integer
                type: object
              type: array
              uniqueItems: false
            vout:
              items:
                properties:
                  'n':
                    type: integer
                  scriptPubKey:
                    properties:
                      address:
                        type: string
                      asm:
                        type: string
                      desc:
                        type: string
                      hex:
                        type: string
                      type:
                        type: string
                    type: object
                  value:
                    type: number
                type: object
              type: array
              uniqueItems: false
            vsize:
              type: integer
            weight:
              type: integer
          type: object
        unknown:
          type: object
      type: object
    api_bitcoin.LastUpdatedBlock:
      properties:
        block_hash:
          type: string
        block_height:
          type: integer
      type: object
  securitySchemes:
    api-key:
      description: Project API Key
      in: header
      name: api-key
      type: apiKey

````