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": [
"<unknown>"
],
"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": [
"<unknown>"
],
"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
}
}Decode a Partially Signed Bitcoin Transaction (PSBT) to analyze inputs, outputs, and signing requirements.
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": [
"<unknown>"
],
"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": [
"<unknown>"
],
"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
}
}Project API Key
Signed PSBT Hex.
The body is of type string.
OK
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?