Class AmmWithdrawFlags


@Beta public class AmmWithdrawFlags extends TransactionFlags
A set of TransactionFlags that can be set on AmmWithdraw transactions. Exactly one flag must be set on each AmmWithdraw transaction, so this class does not allow for combination of multiple flags.

While most other TransactionFlags support empty flags or 0, AmmWithdraw transactions must have a Flags field to denote the withdraw mode. Therefore, AmmWithdrawFlags does not support empty or unset flags.

This class will be marked Beta until the AMM amendment is enabled on mainnet. Its API is subject to change.

  • Field Details

  • Method Details

    • tfLpToken

      public boolean tfLpToken()
      Whether the tfLPToken flag is set.
      Returns:
      true if tfLPToken is set, otherwise false.
    • tfWithdrawAll

      public boolean tfWithdrawAll()
      Whether the tfWithdrawAll flag is set.
      Returns:
      true if tfWithdrawAll is set, otherwise false.
    • tfOneAssetWithdrawAll

      public boolean tfOneAssetWithdrawAll()
      Whether the tfOneAssetWithdrawAll flag is set.
      Returns:
      true if tfOneAssetWithdrawAll is set, otherwise false.
    • tfSingleAsset

      public boolean tfSingleAsset()
      Whether the tfSingleAsset flag is set.
      Returns:
      true if tfSingleAsset is set, otherwise false.
    • tfTwoAsset

      public boolean tfTwoAsset()
      Whether the tfTwoAsset flag is set.
      Returns:
      true if tfTwoAsset is set, otherwise false.
    • tfOneAssetLpToken

      public boolean tfOneAssetLpToken()
      Whether the tfOneAssetLPToken flag is set.
      Returns:
      true if tfOneAssetLPToken is set, otherwise false.
    • tfLimitLpToken

      public boolean tfLimitLpToken()
      Whether the tfLimitLPToken flag is set.
      Returns:
      true if tfLimitLPToken is set, otherwise false.
    • tfInnerBatchTxn

      public boolean tfInnerBatchTxn()
      Whether the tfInnerBatchTxn flag is set.
      Overrides:
      tfInnerBatchTxn in class TransactionFlags
      Returns:
      true if tfInnerBatchTxn is set, otherwise false.
      See Also:
      • "https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-0056-batch"