Enum SerumConfigs.Commitment

java.lang.Object
java.lang.Enum<SerumConfigs.Commitment>
com.knowm.xchange.serum.SerumConfigs.Commitment
All Implemented Interfaces:
Serializable, Comparable<SerumConfigs.Commitment>, java.lang.constant.Constable
Enclosing class:
SerumConfigs

public static enum SerumConfigs.Commitment
extends Enum<SerumConfigs.Commitment>
The level of commitment desired when querying state

'max': Query the most recent block which has been finalized by the cluster 'recent': Query the most recent block which has reached 1 confirmation by the connected node 'root': Query the most recent block which has been rooted by the connected node 'single': Query the most recent block which has reached 1 confirmation by the cluster 'singleGossip': Query the most recent block which has reached 1 confirmation according to votes seen in gossip

For more https://docs.solana.com/developing/clients/jsonrpc-api#configuring-state-commitment

  • Enum Constant Details

  • Method Details

    • values

      public static SerumConfigs.Commitment[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SerumConfigs.Commitment valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null