Interface AmmVote

All Superinterfaces:
Transaction
All Known Implementing Classes:
ImmutableAmmVote

@Immutable @Beta public interface AmmVote extends Transaction
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.

  • Method Details

    • builder

      static ImmutableAmmVote.Builder builder()
      Construct a AmmVote builder.
      Returns:
      An ImmutableAmmVote.Builder.
    • flags

      @Default default TransactionFlags flags()
      Set of TransactionFlagss for this AmmVote, which only allows the tfFullyCanonicalSig flag, 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.