TransactionPlan constructor

TransactionPlan({
  1. Int64? amount,
  2. Int64? availableAmount,
  3. Int64? fee,
  4. Int64? change,
  5. Iterable<UnspentTransaction>? utxos,
  6. List<int>? branchId,
  7. SigningError? error,
  8. List<int>? outputOpReturn,
})

Implementation

factory TransactionPlan({
  $fixnum.Int64? amount,
  $fixnum.Int64? availableAmount,
  $fixnum.Int64? fee,
  $fixnum.Int64? change,
  $core.Iterable<UnspentTransaction>? utxos,
  $core.List<$core.int>? branchId,
  $0.SigningError? error,
  $core.List<$core.int>? outputOpReturn,
}) {
  final _result = create();
  if (amount != null) {
    _result.amount = amount;
  }
  if (availableAmount != null) {
    _result.availableAmount = availableAmount;
  }
  if (fee != null) {
    _result.fee = fee;
  }
  if (change != null) {
    _result.change = change;
  }
  if (utxos != null) {
    _result.utxos.addAll(utxos);
  }
  if (branchId != null) {
    _result.branchId = branchId;
  }
  if (error != null) {
    _result.error = error;
  }
  if (outputOpReturn != null) {
    _result.outputOpReturn = outputOpReturn;
  }
  return _result;
}