addInput method
Implementation
int addInput(Uint8List hash, int? index,
{int? sequence,
Uint8List? scriptSig,
int? value,
Uint8List? prevoutScript,
Uint8List? witnessUtxo,
Uint8List? tapInternalKey,
List<TapLeafScript>? tapLeafScript}) {
ins.add(Input(
hash: hash,
index: index,
sequence: sequence ?? DEFAULT_SEQUENCE,
script: scriptSig ?? EMPTY_SCRIPT,
prevOutScript: prevoutScript ?? EMPTY_SCRIPT,
witness: EMPTY_WITNESS,
value: value,
witnessUtxo: witnessUtxo,
tapInternalKey: tapInternalKey,
tapLeafScript: tapLeafScript));
return ins.length - 1;
}