CheckCreate constructor

CheckCreate({
  1. required String account,
  2. required String destination,
  3. required CurrencyAmount sendMax,
  4. List<XRPLMemo>? memos = const [],
  5. int? ticketSequance,
  6. String? destinationTag,
  7. DateTime? expirationTime,
  8. String? invoiceId,
  9. String signingPubKey = "",
  10. int? sequence,
  11. String? fee,
  12. int? lastLedgerSequence,
})

destination The address of the account that can cash the Check sendMax Maximum amount of source token the Check is allowed to debit the sender, including transfer fees on non-XRP tokens. The Check can only credit the destination with the same token (from the same issuer, for non-XRP tokens). expiration Time after which the Check is no longer valid invoiceId Arbitrary 256-bit hash representing a specific reason or identifier for this Check.

Implementation

CheckCreate({
  required super.account,
  required this.destination,
  required this.sendMax,
  super.memos,
  super.ticketSequance,
  this.destinationTag,
  DateTime? expirationTime,
  this.invoiceId,
  super.signingPubKey,
  super.sequence,
  super.fee,
  super.lastLedgerSequence,
}) : super(transactionType: XRPLTransactionType.CHECK_CREATE) {
  if (expirationTime != null) {
    expiration = datetimeToRippleTime(expirationTime);
  } else {
    expiration = null;
  }
}