POST
/
transaction
/
psbt
/
decode
Decode PSBT
curl --request POST \
  --url https://xbt-mainnet.gomaestro-api.org/v0/rpc/transaction/psbt/decode \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '"<string>"'
{
  "data": {
    "fee": 123,
    "global_xpubs": [
      "<any>"
    ],
    "inputs": [
      {
        "bip32_derivs": [
          {
            "master_fingerprint": "<string>",
            "path": "<string>",
            "pubkey": "<string>"
          }
        ],
        "non_witness_utxo": {
          "hash": "<string>",
          "locktime": 123,
          "size": 123,
          "txid": "<string>",
          "version": 123,
          "vin": [
            {
              "scriptSig": {
                "asm": "<string>",
                "hex": "<string>"
              },
              "sequence": 123,
              "txid": "<string>",
              "vout": 123
            }
          ],
          "vout": [
            {
              "n": 123,
              "scriptPubKey": {
                "address": "<string>",
                "asm": "<string>",
                "desc": "<string>",
                "hex": "<string>",
                "type": "<string>"
              },
              "value": 123
            }
          ],
          "vsize": 123,
          "weight": 123
        },
        "witness_utxo": {
          "amount": 123,
          "scriptPubKey": {
            "address": "<string>",
            "asm": "<string>",
            "desc": "<string>",
            "hex": "<string>",
            "type": "<string>"
          }
        }
      }
    ],
    "outputs": [
      {
        "bip32_derivs": [
          {
            "master_fingerprint": "<string>",
            "path": "<string>",
            "pubkey": "<string>"
          }
        ]
      }
    ],
    "proprietary": [
      "<any>"
    ],
    "psbt_version": 123,
    "tx": {
      "hash": "<string>",
      "locktime": 123,
      "size": 123,
      "txid": "<string>",
      "version": 123,
      "vin": [
        {
          "scriptSig": {
            "asm": "<string>",
            "hex": "<string>"
          },
          "sequence": 123,
          "txid": "<string>",
          "vout": 123
        }
      ],
      "vout": [
        {
          "n": 123,
          "scriptPubKey": {
            "address": "<string>",
            "asm": "<string>",
            "desc": "<string>",
            "hex": "<string>",
            "type": "<string>"
          },
          "value": 123
        }
      ],
      "vsize": 123,
      "weight": 123
    },
    "unknown": {}
  },
  "last_updated": {
    "block_hash": "<string>",
    "block_height": 123
  }
}

Authorizations

api-key
string
header
required

Project API Key

Body

application/json · string

Signed PSBT Hex.

The body is of type string.

Response

200
application/json

OK

The response is of type object.