Transaction constructor

Transaction({
  1. int? version,
  2. int? versionGroupId,
  3. Iterable<TransactionInput>? inputs,
  4. Iterable<TransactionOutput>? outputs,
  5. int? lockTime,
  6. int? expiryHeight,
  7. Int64? saplingValueBalance,
  8. List<int>? branchId,
})

Implementation

factory Transaction({
  $core.int? version,
  $core.int? versionGroupId,
  $core.Iterable<$0.TransactionInput>? inputs,
  $core.Iterable<$0.TransactionOutput>? outputs,
  $core.int? lockTime,
  $core.int? expiryHeight,
  $fixnum.Int64? saplingValueBalance,
  $core.List<$core.int>? branchId,
}) {
  final result = create();
  if (version != null) result.version = version;
  if (versionGroupId != null) result.versionGroupId = versionGroupId;
  if (inputs != null) result.inputs.addAll(inputs);
  if (outputs != null) result.outputs.addAll(outputs);
  if (lockTime != null) result.lockTime = lockTime;
  if (expiryHeight != null) result.expiryHeight = expiryHeight;
  if (saplingValueBalance != null)
    result.saplingValueBalance = saplingValueBalance;
  if (branchId != null) result.branchId = branchId;
  return result;
}