update Witness Output
fun updateWitnessOutput( outputIndex: Int, witnessScript: List<ScriptElt>? = null, redeemScript: List<ScriptElt>? = null, derivationPaths: Map<PublicKey, KeyPathWithMaster> = mapOf()): Either<UpdateFailure, Psbt>
Content copied to clipboard
Add details for a segwit output.
Return
psbt with the matching output updated.
Parameters
output Index
index of the output in the psbt.
witness Script
witness script if known and applicable (when using p2wsh).
redeem Script
redeem script if known and applicable (when using p2sh-embedded segwit).
derivation Paths
derivation paths for keys used by this output.