Interface XChainCommit
- All Superinterfaces:
Transaction
- All Known Implementing Classes:
ImmutableXChainCommit
Object mapping for the
XChainCommit transaction.
This interface will be marked Beta until the featureXChainBridge amendment is enabled on mainnet. Its API
is subject to change.
-
Field Summary
Fields inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
typeMap -
Method Summary
Modifier and TypeMethodDescriptionamount()The asset to commit, and the quantity.builder()Construct aXChainCommitbuilder.default TransactionFlagsflags()Set ofTransactionFlagss for thisXChainCommit, which only allows thetfFullyCanonicalSigflag, which is deprecated.The destination account on the destination chain.The bridge to use to transfer funds.The unique integer ID for a cross-chain transfer.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 aXChainCommitbuilder.- Returns:
- An
ImmutableXChainCommit.Builder.
-
flags
Set ofTransactionFlagss for thisXChainCommit, which only allows thetfFullyCanonicalSigflag, which is deprecated.- Returns:
- A set of
TransactionFlags, default isTransactionFlags.EMPTY.
-
amount
CurrencyAmount amount()The asset to commit, and the quantity. This must match the door account'sLockingChainIssue(if on the locking chain) or the door account'sIssuingChainIssue(if on the issuing chain).- Returns:
- A
CurrencyAmount.
-
otherChainDestination
The destination account on the destination chain. If this is not specified, the account that submitted theXChainCreateClaimIdtransaction on the destination chain will need to submit aXChainClaimtransaction to claim the funds.- Returns:
- An optionally-present
Address.
-
xChainBridge
XChainBridge xChainBridge()The bridge to use to transfer funds.- Returns:
- An
XChainBridge.
-
xChainClaimId
XChainClaimId xChainClaimId()The unique integer ID for a cross-chain transfer. This must be acquired on the destination chain (via aXChainCreateClaimIdtransaction) and checked from a validated ledger before submitting this transaction. If an incorrect sequence number is specified, the funds will be lost.- Returns:
- An
XChainClaimId.
-