Interface AmmVote
- All Superinterfaces:
Transaction
- All Known Implementing Classes:
ImmutableAmmVote
Object mapping for the AMMVote transaction.
This class will be marked Beta until the AMM 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 TypeMethodDescriptionasset()The definition for one of the assets in the AMM's pool.asset2()The definition for the other asset in the AMM's pool.static ImmutableAmmVote.Builderbuilder()Construct aAmmVotebuilder.default TransactionFlagsflags()Set ofTransactionFlagss for thisAmmVote, which only allows thetfFullyCanonicalSigflag, which is deprecated.The proposed fee to vote for.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 aAmmVotebuilder.- Returns:
- An
ImmutableAmmVote.Builder.
-
flags
Set ofTransactionFlagss for thisAmmVote, 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.
-
asset
Issue asset()The definition for one of the assets in the AMM's pool.- Returns:
- An
Issue.
-
asset2
Issue asset2()The definition for the other asset in the AMM's pool.- Returns:
- An
Issue.
-
tradingFee
TradingFee tradingFee()The proposed fee to vote for.- Returns:
- A
TradingFee.
-