updateSigScript

fun updateSigScript(i: Int, sigScript: ByteArray): Transaction
fun updateSigScript(i: Int, sigScript: List<ScriptElt>): Transaction

Return

a new transaction that is of copy of this one but where the signature script of the ith input has been replaced by sigscript

Parameters

i

index of the tx input to update

sigScript

new signature script