descriptorprocesspsbt

Back to rawtransactions

Summary

Update all segwit inputs in a PSBT with information from output descriptors, the UTXO set or the mempool.

Description

Update all segwit inputs in a PSBT with information from output descriptors, the UTXO set or the mempool. Then, sign the inputs we are able to with information from the output descriptors.

Arguments

  • psbt (STR, required): The transaction base64 string
  • descriptors (ARR, required): An array of either strings or objects
  • value (STR): An output descriptor
  • value (OBJ): An object with an output descriptor and extra information
    • desc (STR, required): An output descriptor
    • range (RANGE): Up to what index HD chains should be explored (either end or [begin,end])
  • sighashtype (STR): The signature hash type to sign with if not specified by the PSBT. Must be one of "DEFAULT" "ALL" "NONE" "SINGLE" "ALL|ANYONECANPAY" "NONE|ANYONECANPAY" "SINGLE|ANYONECANPAY"
  • bip32derivs (BOOL): Include BIP 32 derivation paths for public keys if we know them
  • finalize (BOOL): Also finalize inputs if possible

Results

  • value (OBJ): No description.
  • psbt (STR): The base64-encoded partially signed transaction
  • complete (BOOL): If the transaction has a complete set of signatures
  • hex (STR_HEX, optional): The hex-encoded network transaction if complete

Examples

qbit-cli descriptorprocesspsbt "psbt" "[\"descriptor1\", \"descriptor2\"]"
qbit-cli descriptorprocesspsbt "psbt" "[{\"desc\":\"mydescriptor\", \"range\":21}]"