TransactionInput constructor

TransactionInput({
  1. OutPoint? previousOutput,
  2. int? sequence,
  3. Int64? valueIn,
  4. int? blockHeight,
  5. int? blockIndex,
  6. List<int>? script,
})

Implementation

factory TransactionInput({
  $1.OutPoint? previousOutput,
  $core.int? sequence,
  $fixnum.Int64? valueIn,
  $core.int? blockHeight,
  $core.int? blockIndex,
  $core.List<$core.int>? script,
}) {
  final _result = create();
  if (previousOutput != null) {
    _result.previousOutput = previousOutput;
  }
  if (sequence != null) {
    _result.sequence = sequence;
  }
  if (valueIn != null) {
    _result.valueIn = valueIn;
  }
  if (blockHeight != null) {
    _result.blockHeight = blockHeight;
  }
  if (blockIndex != null) {
    _result.blockIndex = blockIndex;
  }
  if (script != null) {
    _result.script = script;
  }
  return _result;
}