decodepsbt
Changed params/results since v30.2
Summary
Return a JSON object representing the serialized, base64-encoded PSBT.
Description
Return a JSON object representing the serialized, base64-encoded PSBT.
Change Buckets
- Changed params/results since v30.2
Arguments
psbt(STR, required): The PSBT base64 string
Results
value(OBJ): No description.tx(OBJ): The decoded network-serialized unsigned transaction.value(ELISION): The layout is the same as the output of decoderawtransaction.
global_xpubs(ARR): No description.value(OBJ): No description.xpub(STR): The extended public key this path corresponds tomaster_fingerprint(STR_HEX): The fingerprint of the master keypath(STR): The path
psbt_version(NUM): The PSBT version number. Not to be confused with the unsigned transaction versionproprietary(ARR): The global proprietary mapvalue(OBJ): No description.identifier(STR_HEX): The hex string for the proprietary identifiersubtype(NUM): The number for the subtypekey(STR_HEX): The hex for the keyvalue(STR_HEX): The hex for the value
unknown(OBJ_DYN): The unknown global fieldskey(STR_HEX): (key-value pair) An unknown key-value pair
inputs(ARR): No description.value(OBJ): No description.non_witness_utxo(OBJ, optional): Decoded network transaction for non-witness UTXOsvalue(ELISION): No description.
witness_utxo(OBJ, optional): Transaction output for witness UTXOsamount(NUM): The value in QBTscriptPubKey(OBJ): No description.asm(STR): Disassembly of the output scriptdesc(STR): Inferred descriptor for the outputhex(STR_HEX): The raw output script bytes, hex-encodedtype(STR): The type, eg 'pubkeyhash'address(STR, optional): The qbit address (only if a well-defined address exists)
partial_signatures(OBJ_DYN, optional): No description.pubkey(STR): The public key and signature that corresponds to it.
sighash(STR, optional): The sighash type to be usedredeem_script(OBJ, optional): No description.asm(STR): Disassembly of the redeem scripthex(STR_HEX): The raw redeem script bytes, hex-encodedtype(STR): The type, eg 'pubkeyhash'
witness_script(OBJ, optional): No description.asm(STR): Disassembly of the witness scripthex(STR_HEX): The raw witness script bytes, hex-encodedtype(STR): The type, eg 'pubkeyhash'
bip32_derivs(ARR, optional): No description.value(OBJ): No description.pubkey(STR): The public key with the derivation path as the value.master_fingerprint(STR): The fingerprint of the master keypath(STR): The path
final_scriptSig(OBJ, optional): No description.asm(STR): Disassembly of the final signature scripthex(STR_HEX): The raw final signature script bytes, hex-encoded
final_scriptwitness(ARR, optional): No description.value(STR_HEX): hex-encoded witness data (if any)
ripemd160_preimages(OBJ_DYN, optional): No description.hash(STR): The hash and preimage that corresponds to it.
sha256_preimages(OBJ_DYN, optional): No description.hash(STR): The hash and preimage that corresponds to it.
hash160_preimages(OBJ_DYN, optional): No description.hash(STR): The hash and preimage that corresponds to it.
hash256_preimages(OBJ_DYN, optional): No description.hash(STR): The hash and preimage that corresponds to it.
taproot_key_path_sig(STR_HEX, optional): hex-encoded signature for the Taproot key path spendtaproot_script_path_sigs(ARR, optional): No description.signature(OBJ, optional): The signature for the pubkey and leaf hash combinationpubkey(STR): The x-only pubkey for this signatureleaf_hash(STR): The leaf hash for this signaturesig(STR): The signature itself
taproot_scripts(ARR, optional): No description.value(OBJ): No description.script(STR_HEX): A leaf scriptleaf_ver(NUM): The version number for the leaf scriptcontrol_blocks(ARR): The control blocks for this scriptcontrol_block(STR_HEX): A hex-encoded control block for this script
taproot_bip32_derivs(ARR, optional): No description.value(OBJ): No description.pubkey(STR): The x-only public key this path corresponds tomaster_fingerprint(STR): The fingerprint of the master keypath(STR): The pathleaf_hashes(ARR): The hashes of the leaves this pubkey appears inhash(STR_HEX): The hash of a leaf this pubkey appears in
taproot_internal_key(STR_HEX, optional): The hex-encoded Taproot x-only internal keytaproot_merkle_root(STR_HEX, optional): The hex-encoded Taproot merkle rootp2mr_script_path_sigs(ARR, optional): No description.value(OBJ): No description.pubkey(STR_HEX): The P2MR pubkey for this signatureleaf_hash(STR_HEX): The leaf hash for this signaturesig(STR_HEX): The signature itself
p2mr_scripts(ARR, optional): No description.value(OBJ): No description.script(STR_HEX): A leaf scriptleaf_ver(NUM): The version number for the leaf scriptcontrol_blocks(ARR): The control blocks for this scriptcontrol_block(STR_HEX): A hex-encoded control block for this script
p2mr_merkle_root(STR_HEX, optional): The hex-encoded P2MR merkle rootmusig2_participant_pubkeys(ARR, optional): No description.value(OBJ): No description.aggregate_pubkey(STR_HEX): The compressed aggregate public key for which the participants create.participant_pubkeys(ARR): No description.pubkey(STR_HEX): The compressed public keys that are aggregated for aggregate_pubkey.
musig2_pubnonces(ARR, optional): No description.value(OBJ): No description.participant_pubkey(STR_HEX): The compressed public key of the participant that created this pubnonce.aggregate_pubkey(STR_HEX): The compressed aggregate public key for which this pubnonce is for.leaf_hash(STR_HEX, optional): The hash of the leaf script that contains the aggregate pubkey being signed for. Omitted when signing for the internal key.pubnonce(STR_HEX): The public nonce itself.
musig2_partial_sigs(ARR, optional): No description.value(OBJ): No description.participant_pubkey(STR_HEX): The compressed public key of the participant that created this partial signature.aggregate_pubkey(STR_HEX): The compressed aggregate public key for which this partial signature is for.leaf_hash(STR_HEX, optional): The hash of the leaf script that contains the aggregate pubkey being signed for. Omitted when signing for the internal key.partial_sig(STR_HEX): The partial signature itself.
unknown(OBJ_DYN, optional): The unknown input fieldskey(STR_HEX): (key-value pair) An unknown key-value pair
proprietary(ARR, optional): The input proprietary mapvalue(OBJ): No description.identifier(STR_HEX): The hex string for the proprietary identifiersubtype(NUM): The number for the subtypekey(STR_HEX): The hex for the keyvalue(STR_HEX): The hex for the value
outputs(ARR): No description.value(OBJ): No description.redeem_script(OBJ, optional): No description.asm(STR): Disassembly of the redeem scripthex(STR_HEX): The raw redeem script bytes, hex-encodedtype(STR): The type, eg 'pubkeyhash'
witness_script(OBJ, optional): No description.asm(STR): Disassembly of the witness scripthex(STR_HEX): The raw witness script bytes, hex-encodedtype(STR): The type, eg 'pubkeyhash'
bip32_derivs(ARR, optional): No description.value(OBJ): No description.pubkey(STR): The public key this path corresponds tomaster_fingerprint(STR): The fingerprint of the master keypath(STR): The path
taproot_internal_key(STR_HEX, optional): The hex-encoded Taproot x-only internal keytaproot_tree(ARR, optional): The tuples that make up the Taproot tree, in depth first search ordertuple(OBJ, optional): A single leaf script in the taproot treedepth(NUM): The depth of this element in the treeleaf_ver(NUM): The version of this leafscript(STR): The hex-encoded script itself
taproot_bip32_derivs(ARR, optional): No description.value(OBJ): No description.pubkey(STR): The x-only public key this path corresponds tomaster_fingerprint(STR): The fingerprint of the master keypath(STR): The pathleaf_hashes(ARR): The hashes of the leaves this pubkey appears inhash(STR_HEX): The hash of a leaf this pubkey appears in
musig2_participant_pubkeys(ARR, optional): No description.value(OBJ): No description.aggregate_pubkey(STR_HEX): The compressed aggregate public key for which the participants create.participant_pubkeys(ARR): No description.pubkey(STR_HEX): The compressed public keys that are aggregated for aggregate_pubkey.
unknown(OBJ_DYN, optional): The unknown output fieldskey(STR_HEX): (key-value pair) An unknown key-value pair
proprietary(ARR, optional): The output proprietary mapvalue(OBJ): No description.identifier(STR_HEX): The hex string for the proprietary identifiersubtype(NUM): The number for the subtypekey(STR_HEX): The hex for the keyvalue(STR_HEX): The hex for the value
fee(STR_AMOUNT, optional): The transaction fee paid if all UTXOs slots in the PSBT have been filled.
Examples
qbit-cli decodepsbt "psbt"