finalizeWitnessInput

fun finalizeWitnessInput(outPoint: OutPoint, scriptWitness: ScriptWitness): Either<UpdateFailure, Psbt>

Implements the PSBT finalizer role: finalizes a given segwit input. This will clear all fields from the input except the utxo, scriptSig, scriptWitness and unknown entries.

Return

a psbt with the given input finalized.

Parameters

outPoint

input that should be finalized.

scriptWitness

witness script.


fun finalizeWitnessInput(inputIndex: Int, scriptWitness: ScriptWitness): Either<UpdateFailure, Psbt>

Implements the PSBT finalizer role: finalizes a given segwit input. This will clear all fields from the input except the utxo, scriptSig, scriptWitness and unknown entries.

Return

a psbt with the given input finalized.

Parameters

inputIndex

index of the input that should be finalized.

scriptWitness

witness script.