Payment constructor
Payment({
- required CurrencyAmount amount,
- required String destination,
- required String account,
- List<
String> multiSigSigners = const [], - String? accountTxId,
- String? fee,
- int? lastLedgerSequence,
- int? sequence,
- dynamic flags = 0,
- List<
XRPLMemo> ? memos = const [], - int? networkId,
- List<
XRPLSigners> ? signers, - String signingPubKey = "",
- int? sourceTag,
- int? ticketSequance,
- String? txnSignature,
- int? destinationTag,
- String? invoiceId,
- List<
List< ? paths,PathStep> > - String? sendMax,
- 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);