RecordOutgoingTransactionCommand constructor
RecordOutgoingTransactionCommand({
- required String walletId,
- required String txid,
- required String rawHex,
- required int totalInputSats,
- required int totalOutputSats,
- required int fee,
- required int numInputs,
- required int numOutputs,
- required int txVersion,
- required int txLockTime,
- required List<
String> spentUtxoKeys, - required List<
String> recipientAddresses, - required BigInt paymentAmount,
- String? changeAddress,
- BigInt? changeAmount,
- bool deferSpend = false,
- bool preSigned = false,
- Map<
String, dynamic> ? signerMetadata, - String? invoiceId,
- String? purpose,
- String? counterpartyMarker,
- String? commandId,
- DateTime? timestamp,
- Map<
String, dynamic> ? metadata,
Implementation
RecordOutgoingTransactionCommand({
required String walletId,
required this.txid,
required this.rawHex,
required this.totalInputSats,
required this.totalOutputSats,
required this.fee,
required this.numInputs,
required this.numOutputs,
required this.txVersion,
required this.txLockTime,
required List<String> spentUtxoKeys,
required List<String> recipientAddresses,
required this.paymentAmount,
this.changeAddress,
this.changeAmount,
this.deferSpend = false,
this.preSigned = false,
Map<String, dynamic>? signerMetadata,
this.invoiceId,
this.purpose,
this.counterpartyMarker,
String? commandId,
DateTime? timestamp,
Map<String, dynamic>? metadata,
}) : spentUtxoKeys = frozenList(spentUtxoKeys),
recipientAddresses = frozenList(recipientAddresses),
signerMetadata = frozenPlainMapOrNull(signerMetadata),
super(
walletId: walletId,
commandId: commandId,
timestamp: timestamp,
metadata: metadata,
);