Package nxt.ms

Enum Class CurrencyType

All Implemented Interfaces:
Serializable, Comparable<CurrencyType>, Constable

public enum CurrencyType extends Enum<CurrencyType>
Define and validate currency capabilities
  • Enum Constant Details

    • EXCHANGEABLE

      public static final CurrencyType EXCHANGEABLE
      Can be exchanged from/to coins
    • CONTROLLABLE

      public static final CurrencyType CONTROLLABLE
      Transfers are only allowed from/to issuer account
      Only issuer account can publish exchange offer
    • RESERVABLE

      public static final CurrencyType RESERVABLE
      Can be reserved before the currency is active, reserve is distributed to founders once the currency becomes active
    • CLAIMABLE

      public static final CurrencyType CLAIMABLE
      Is RESERVABLE and can be claimed after currency is active
      Cannot be EXCHANGEABLE
    • MINTABLE

      public static final CurrencyType MINTABLE
      Can be minted using proof of work algorithm
    • NON_SHUFFLEABLE

      public static final CurrencyType NON_SHUFFLEABLE
      Several accounts can shuffle their currency units and then distributed to recipients
  • Method Details

    • values

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

      public static CurrencyType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public int getCode()
    • get

      public static CurrencyType get(int code)
    • validate

      public static void validate(Currency currency, Transaction transaction) throws NxtException.ValidationException
      Throws:
      NxtException.ValidationException