addInput method

int addInput(
  1. Uint8List hash,
  2. int? index, [
  3. int? sequence,
  4. Uint8List? scriptSig,
])

Implementation

int addInput(Uint8List hash, int? index,
    [int? sequence, Uint8List? scriptSig]) {
  ins.add(new Input(
      hash: hash,
      index: index,
      sequence: sequence ?? DEFAULT_SEQUENCE,
      script: scriptSig ?? EMPTY_SCRIPT,
      witness: EMPTY_WITNESS));
  return ins.length - 1;
}