decodepsbt

Back to rawtransactions

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 to
    • master_fingerprint (STR_HEX): The fingerprint of the master key
    • path (STR): The path
  • psbt_version (NUM): The PSBT version number. Not to be confused with the unsigned transaction version
  • proprietary (ARR): The global proprietary map
    • value (OBJ): No description.
    • identifier (STR_HEX): The hex string for the proprietary identifier
    • subtype (NUM): The number for the subtype
    • key (STR_HEX): The hex for the key
    • value (STR_HEX): The hex for the value
  • unknown (OBJ_DYN): The unknown global fields
    • key (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 UTXOs
      • value (ELISION): No description.
    • witness_utxo (OBJ, optional): Transaction output for witness UTXOs
      • amount (NUM): The value in QBT
      • scriptPubKey (OBJ): No description.
      • asm (STR): Disassembly of the output script
      • desc (STR): Inferred descriptor for the output
      • hex (STR_HEX): The raw output script bytes, hex-encoded
      • type (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 used
    • redeem_script (OBJ, optional): No description.
      • asm (STR): Disassembly of the redeem script
      • hex (STR_HEX): The raw redeem script bytes, hex-encoded
      • type (STR): The type, eg 'pubkeyhash'
    • witness_script (OBJ, optional): No description.
      • asm (STR): Disassembly of the witness script
      • hex (STR_HEX): The raw witness script bytes, hex-encoded
      • type (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 key
      • path (STR): The path
    • final_scriptSig (OBJ, optional): No description.
      • asm (STR): Disassembly of the final signature script
      • hex (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 spend
    • taproot_script_path_sigs (ARR, optional): No description.
      • signature (OBJ, optional): The signature for the pubkey and leaf hash combination
      • pubkey (STR): The x-only pubkey for this signature
      • leaf_hash (STR): The leaf hash for this signature
      • sig (STR): The signature itself
    • taproot_scripts (ARR, optional): No description.
      • value (OBJ): No description.
      • script (STR_HEX): A leaf script
      • leaf_ver (NUM): The version number for the leaf script
      • control_blocks (ARR): The control blocks for this script
        • control_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 to
      • master_fingerprint (STR): The fingerprint of the master key
      • path (STR): The path
      • leaf_hashes (ARR): The hashes of the leaves this pubkey appears in
        • hash (STR_HEX): The hash of a leaf this pubkey appears in
    • taproot_internal_key (STR_HEX, optional): The hex-encoded Taproot x-only internal key
    • taproot_merkle_root (STR_HEX, optional): The hex-encoded Taproot merkle root
    • p2mr_script_path_sigs (ARR, optional): No description.
      • value (OBJ): No description.
      • pubkey (STR_HEX): The P2MR pubkey for this signature
      • leaf_hash (STR_HEX): The leaf hash for this signature
      • sig (STR_HEX): The signature itself
    • p2mr_scripts (ARR, optional): No description.
      • value (OBJ): No description.
      • script (STR_HEX): A leaf script
      • leaf_ver (NUM): The version number for the leaf script
      • control_blocks (ARR): The control blocks for this script
        • control_block (STR_HEX): A hex-encoded control block for this script
    • p2mr_merkle_root (STR_HEX, optional): The hex-encoded P2MR merkle root
    • 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.
    • 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 fields
      • key (STR_HEX): (key-value pair) An unknown key-value pair
    • proprietary (ARR, optional): The input proprietary map
      • value (OBJ): No description.
      • identifier (STR_HEX): The hex string for the proprietary identifier
      • subtype (NUM): The number for the subtype
      • key (STR_HEX): The hex for the key
      • value (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 script
      • hex (STR_HEX): The raw redeem script bytes, hex-encoded
      • type (STR): The type, eg 'pubkeyhash'
    • witness_script (OBJ, optional): No description.
      • asm (STR): Disassembly of the witness script
      • hex (STR_HEX): The raw witness script bytes, hex-encoded
      • type (STR): The type, eg 'pubkeyhash'
    • bip32_derivs (ARR, optional): No description.
      • value (OBJ): No description.
      • pubkey (STR): The public key this path corresponds to
      • master_fingerprint (STR): The fingerprint of the master key
      • path (STR): The path
    • taproot_internal_key (STR_HEX, optional): The hex-encoded Taproot x-only internal key
    • taproot_tree (ARR, optional): The tuples that make up the Taproot tree, in depth first search order
      • tuple (OBJ, optional): A single leaf script in the taproot tree
      • depth (NUM): The depth of this element in the tree
      • leaf_ver (NUM): The version of this leaf
      • script (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 to
      • master_fingerprint (STR): The fingerprint of the master key
      • path (STR): The path
      • leaf_hashes (ARR): The hashes of the leaves this pubkey appears in
        • hash (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 fields
      • key (STR_HEX): (key-value pair) An unknown key-value pair
    • proprietary (ARR, optional): The output proprietary map
      • value (OBJ): No description.
      • identifier (STR_HEX): The hex string for the proprietary identifier
      • subtype (NUM): The number for the subtype
      • key (STR_HEX): The hex for the key
      • value (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"