Enum Class LnrpcAddressType

java.lang.Object
java.lang.Enum<LnrpcAddressType>
net.osslabz.lnd.dto.LnrpcAddressType
All Implemented Interfaces:
Serializable, Comparable<LnrpcAddressType>, Constable

public enum LnrpcAddressType extends Enum<LnrpcAddressType>
- `p2wkh`: Pay to witness key hash (`WITNESS_PUBKEY_HASH` = 0) - `np2wkh`: Pay to nested witness key hash (`NESTED_PUBKEY_HASH` = 1) - `p2tr`: Pay to taproot pubkey (`TAPROOT_PUBKEY` = 4)
  • Enum Constant Details

    • WITNESS_PUBKEY_HASH

      public static final LnrpcAddressType WITNESS_PUBKEY_HASH
    • NESTED_PUBKEY_HASH

      public static final LnrpcAddressType NESTED_PUBKEY_HASH
    • UNUSED_WITNESS_PUBKEY_HASH

      public static final LnrpcAddressType UNUSED_WITNESS_PUBKEY_HASH
    • UNUSED_NESTED_PUBKEY_HASH

      public static final LnrpcAddressType UNUSED_NESTED_PUBKEY_HASH
    • TAPROOT_PUBKEY

      public static final LnrpcAddressType TAPROOT_PUBKEY
    • UNUSED_TAPROOT_PUBKEY

      public static final LnrpcAddressType UNUSED_TAPROOT_PUBKEY
  • Method Details

    • values

      public static LnrpcAddressType[] 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 LnrpcAddressType 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
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<LnrpcAddressType>
    • fromValue

      public static LnrpcAddressType fromValue(String value)