addInput method

int addInput (Uint8List hash, int index, [ int sequence, Uint8List scriptSig ])

Add input to the transaction. If sequence is not provided, defaults to DEFAULT_SEQUENCE

Implementation

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