RecordTransactionNetworkStatusCommand constructor

RecordTransactionNetworkStatusCommand({
  1. required String walletId,
  2. required String txid,
  3. required String networkStatus,
  4. String source = 'arc',
  5. DateTime? checkedAt,
  6. int? blockHeight,
  7. bool explicit = false,
  8. String? detail,
  9. List<String> competingTxids = const [],
  10. String? commandId,
  11. DateTime? timestamp,
  12. Map<String, dynamic>? metadata,
})

Implementation

RecordTransactionNetworkStatusCommand({
  required String walletId,
  required this.txid,
  required this.networkStatus,
  this.source = 'arc',
  DateTime? checkedAt,
  this.blockHeight,
  this.explicit = false,
  this.detail,
  List<String> competingTxids = const [],
  String? commandId,
  DateTime? timestamp,
  Map<String, dynamic>? metadata,
})  : competingTxids = frozenList(competingTxids),
      checkedAt = checkedAt ?? DateTime.now(),
      super(walletId: walletId, commandId: commandId, timestamp: timestamp, metadata: metadata);