Interface PaymentChannelCreate
- All Superinterfaces:
Transaction
- All Known Implementing Classes:
ImmutablePaymentChannelCreate
Create a unidirectional channel and fund it with XRP. The address sending this transaction becomes the
"source address" of the payment channel.
-
Field Summary
Fields inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
typeMap -
Method Summary
Modifier and TypeMethodDescriptionamount()Amount of XRP, in drops, to deduct from theTransaction.account()'s balance and set aside in this channel.builder()Construct a builder for this class.Optional<com.google.common.primitives.UnsignedLong> The time, in seconds since the Ripple Epoch, when this channel expires.Addressto receive XRP claims against this channel.Optional<com.google.common.primitives.UnsignedInteger> Arbitrary tag to further specify the destination for this payment channel, such as a hosted recipient at thedestination()address.default TransactionFlagsflags()Set ofTransactionFlagss for thisPaymentChannelCreate, which only allows thetfFullyCanonicalSigflag, which is deprecated.The public key of the key pair theTransaction.account()will use to sign claims against this channel, in hexadecimal.com.google.common.primitives.UnsignedIntegerAmount of time, in seconds, theTransaction.account()must wait before closing the channel if it has unclaimed XRP.Methods inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
account, accountTransactionId, delegate, fee, lastLedgerSequence, memos, networkId, sequence, signers, signingPublicKey, sourceTag, ticketSequence, transactionFlags, transactionSignature, transactionType, unknownFields, validateDelegateNotSameAsAccount
-
Method Details
-
builder
Construct a builder for this class.- Returns:
- An
ImmutablePaymentChannelCreate.Builder.
-
flags
Set ofTransactionFlagss for thisPaymentChannelCreate, which only allows thetfFullyCanonicalSigflag, which is deprecated.The value of the flags cannot be set manually, but exists for JSON serialization/deserialization only and for proper signature computation in rippled.
- Returns:
- Always
TransactionFlags.EMPTY.
-
amount
XrpCurrencyAmount amount()Amount of XRP, in drops, to deduct from theTransaction.account()'s balance and set aside in this channel. While the channel is open, the XRP can only go to thedestination()address. When the channel closes, any unclaimed XRP is returned to theTransaction.account()'s balance.- Returns:
- An
XrpCurrencyAmountrepresenting the amount of the payment channel.
-
destination
Address destination()Addressto receive XRP claims against this channel. Cannot be the same asTransaction.account();- Returns:
- The
Addressof the destination account.
-
settleDelay
com.google.common.primitives.UnsignedInteger settleDelay()Amount of time, in seconds, theTransaction.account()must wait before closing the channel if it has unclaimed XRP.- Returns:
- An
UnsignedIntegerrepresenting the settlement delay.
-
publicKey
String publicKey()The public key of the key pair theTransaction.account()will use to sign claims against this channel, in hexadecimal. This can be any secp256k1 or Ed25519 public key.- Returns:
- A
Stringcontaining the public key for the channel.
-
cancelAfter
Optional<com.google.common.primitives.UnsignedLong> cancelAfter()The time, in seconds since the Ripple Epoch, when this channel expires. Any transaction that would modify the channel after this time closes the channel without otherwise affecting it. This value is immutable; the channel can be closed earlier than this time but cannot remain open after this time.- Returns:
- An
Optionalof typeUnsignedLongrepresenting the cancel after time.
-
destinationTag
Optional<com.google.common.primitives.UnsignedInteger> destinationTag()Arbitrary tag to further specify the destination for this payment channel, such as a hosted recipient at thedestination()address.- Returns:
- An
Optionalof typeUnsignedIntegerrepresenting the tag of the destination account.
-