Payment constructor

Payment({
  1. required CurrencyAmount amount,
  2. required String destination,
  3. required String account,
  4. List<String> multiSigSigners = const [],
  5. String? accountTxId,
  6. String? fee,
  7. int? lastLedgerSequence,
  8. int? sequence,
  9. dynamic flags = 0,
  10. List<XRPLMemo>? memos = const [],
  11. int? networkId,
  12. List<XRPLSigners>? signers,
  13. String signingPubKey = "",
  14. int? sourceTag,
  15. int? ticketSequance,
  16. String? txnSignature,
  17. int? destinationTag,
  18. String? invoiceId,
  19. List<List<PathStep>>? paths,
  20. String? sendMax,
  21. String? deliverMin,
})

amount The amount of currency to deliver. If the Partial Payment flag is set, deliver up to this amount instead destination The address of the account receiving the payment invoiceId Arbitrary 256-bit hash representing a specific reason or identifier for this Check. paths Array of payment paths to be used (for a cross-currency payment). Must be omitted for XRP-to-XRP transactions. sendMax Maximum amount of source currency this transaction is allowed to cost deliverMin Minimum amount of destination currency this transaction should deliver

Implementation

Payment({
  required this.amount,
  required this.destination,
  required super.account,
  super.multiSigSigners,
  super.accountTxId,
  super.fee,
  super.lastLedgerSequence,
  super.sequence,
  super.flags,
  super.memos,
  super.networkId,
  super.signers,
  super.signingPubKey,
  super.sourceTag,
  super.ticketSequance,
  super.txnSignature,
  this.destinationTag,
  this.invoiceId,
  this.paths,
  this.sendMax,
  this.deliverMin,
}) : super(transactionType: XRPLTransactionType.PAYMENT);