TransactionPlan constructor
TransactionPlan({
- Int64? amount,
- Int64? availableAmount,
- Int64? fee,
- Int64? change,
- Iterable<
UnspentTransaction> ? utxos, - List<
int> ? branchId, - SigningError? error,
- List<
int> ? outputOpReturn, - List<
int> ? preblockhash, - Int64? preblockheight,
- TransactionPlan? planningResultV2,
- OutputIndex? outputOpReturnIndex,
Implementation
factory TransactionPlan({
$fixnum.Int64? amount,
$fixnum.Int64? availableAmount,
$fixnum.Int64? fee,
$fixnum.Int64? change,
$core.Iterable<UnspentTransaction>? utxos,
$core.List<$core.int>? branchId,
$1.SigningError? error,
$core.List<$core.int>? outputOpReturn,
$core.List<$core.int>? preblockhash,
$fixnum.Int64? preblockheight,
$0.TransactionPlan? planningResultV2,
OutputIndex? outputOpReturnIndex,
}) {
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;
if (preblockhash != null) result.preblockhash = preblockhash;
if (preblockheight != null) result.preblockheight = preblockheight;
if (planningResultV2 != null) result.planningResultV2 = planningResultV2;
if (outputOpReturnIndex != null)
result.outputOpReturnIndex = outputOpReturnIndex;
return result;
}