addInput method

int addInput(
  1. Uint8List hash,
  2. int? index, {
  3. int? sequence,
  4. Uint8List? scriptSig,
  5. int? value,
  6. Uint8List? prevoutScript,
  7. Uint8List? witnessUtxo,
  8. Uint8List? tapInternalKey,
  9. List<TapLeafScript>? tapLeafScript,
})

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;
}