TransactionPlan constructor
TransactionPlan({
- Int64? amount,
- Int64? availableAmount,
- Int64? fee,
- Int64? change,
- Iterable<
UnspentTransaction> ? utxos, - List<
int> ? branchId, - SigningError? error,
- 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;
}