PaymentChannelCreate constructor
PaymentChannelCreate({
- required String account,
- required BigInt amount,
- required String destination,
- required int settleDelay,
- required String publicKey,
- List<
XRPLMemo> ? memos = const [], - int? ticketSequance,
- DateTime? cancelAfterTime,
- int? destinationTag,
- String signingPubKey = "",
- int? sequence,
- String? fee,
- int? lastLedgerSequence,
amount
The amount of XRP, in drops, to set aside in this channel.
destination
can receive XRP from this channel, also known as the
"destination address" of the channel. Cannot be the same as the sender.
settleDelay
The amount of time, in seconds, the source address must wait between
requesting to close the channel and fully closing it.
publicKey
The public key of the key pair that the source will use to authorize
claims against this channel, as hexadecimal. This can be any valid
secp256k1 or Ed25519 public key.
cancelAfterTime
An immutable expiration time for the channel.
The channel can be closed sooner than this but cannot remain open
later than this time.
Implementation
PaymentChannelCreate({
required super.account,
required this.amount,
required this.destination,
required this.settleDelay,
required this.publicKey,
super.memos,
super.ticketSequance,
DateTime? cancelAfterTime,
this.destinationTag,
super.signingPubKey,
super.sequence,
super.fee,
super.lastLedgerSequence,
}) : super(transactionType: XRPLTransactionType.PAYMENT_CHANNEL_CREATE) {
if (cancelAfterTime != null) {
cancelAfter = datetimeToRippleTime(cancelAfterTime);
} else {
cancelAfter = null;
}
}