Transaction constructor

Transaction({
  1. int? serializeType,
  2. int? version,
  3. Iterable<TransactionInput>? inputs,
  4. Iterable<TransactionOutput>? outputs,
  5. int? lockTime,
  6. int? expiry,
})

Implementation

factory Transaction({
  $core.int? serializeType,
  $core.int? version,
  $core.Iterable<TransactionInput>? inputs,
  $core.Iterable<TransactionOutput>? outputs,
  $core.int? lockTime,
  $core.int? expiry,
}) {
  final _result = create();
  if (serializeType != null) {
    _result.serializeType = serializeType;
  }
  if (version != null) {
    _result.version = version;
  }
  if (inputs != null) {
    _result.inputs.addAll(inputs);
  }
  if (outputs != null) {
    _result.outputs.addAll(outputs);
  }
  if (lockTime != null) {
    _result.lockTime = lockTime;
  }
  if (expiry != null) {
    _result.expiry = expiry;
  }
  return _result;
}