PaymentChannelFund constructor

PaymentChannelFund({
  1. required String account,
  2. required String channel,
  3. required BigInt amount,
  4. List<XRPLMemo>? memos = const [],
  5. int? ticketSequance,
  6. DateTime? expirationTime,
  7. String signingPubKey = "",
  8. int? sequence,
  9. String? fee,
  10. int? lastLedgerSequence,
})

channel The unique ID of the payment channel, as a 64-character hexadecimal string. amount The amount of XRP, in drops, to add to the channel. expiration A new mutable expiration time to set for the channel, This must be later than the existing expiration time of the channel or later than the current time plus the settle delay of the channel. This is separate from the immutable cancel_after time.

Implementation

PaymentChannelFund({
  required super.account,
  required this.channel,
  required this.amount,
  super.memos,
  super.ticketSequance,
  DateTime? expirationTime,
  super.signingPubKey,
  super.sequence,
  super.fee,
  super.lastLedgerSequence,
}) : super(transactionType: XRPLTransactionType.PAYMENT_CHANNEL_FUND) {
  if (expirationTime != null) {
    expiration = datetimeToRippleTime(expirationTime);
  } else {
    expiration = null;
  }
}