Interface AmmCreate
- All Superinterfaces:
Transaction
- All Known Implementing Classes:
ImmutableAmmCreate
Object mapping for the AMMCreate 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 TypeMethodDescriptionamount()The first of the two assets to fund this AMM with.amount2()The second of the two assets to fund this AMM with.static ImmutableAmmCreate.Builderbuilder()Construct aAmmCreatebuilder.default TransactionFlagsflags()Set ofTransactionFlagss for thisAmmCreate, which only allows thetfFullyCanonicalSigflag, which is deprecated.The fee to charge for trades against this AMM instance.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 aAmmCreatebuilder.- Returns:
- An
ImmutableAmmCreate.Builder.
-
flags
Set ofTransactionFlagss for thisAmmCreate, 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
CurrencyAmount amount()The first of the two assets to fund this AMM with.- Returns:
- A
CurrencyAmount.
-
amount2
CurrencyAmount amount2()The second of the two assets to fund this AMM with.- Returns:
- A
CurrencyAmount.
-
tradingFee
TradingFee tradingFee()The fee to charge for trades against this AMM instance.- Returns:
- A
TradingFee.
-