public static enum LightningApi.OutputScriptType extends java.lang.Enum<LightningApi.OutputScriptType> implements com.google.protobuf.ProtocolMessageEnum
lnrpc.OutputScriptType
Enum Constant and Description |
---|
SCRIPT_TYPE_MULTISIG
SCRIPT_TYPE_MULTISIG = 5; |
SCRIPT_TYPE_NON_STANDARD
SCRIPT_TYPE_NON_STANDARD = 7; |
SCRIPT_TYPE_NULLDATA
SCRIPT_TYPE_NULLDATA = 6; |
SCRIPT_TYPE_PUBKEY
SCRIPT_TYPE_PUBKEY = 4; |
SCRIPT_TYPE_PUBKEY_HASH
SCRIPT_TYPE_PUBKEY_HASH = 0; |
SCRIPT_TYPE_SCRIPT_HASH
SCRIPT_TYPE_SCRIPT_HASH = 1; |
SCRIPT_TYPE_WITNESS_UNKNOWN
SCRIPT_TYPE_WITNESS_UNKNOWN = 8; |
SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH
SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH = 2; |
SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH
SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH = 3; |
SCRIPT_TYPE_WITNESS_V1_TAPROOT
SCRIPT_TYPE_WITNESS_V1_TAPROOT = 9; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
SCRIPT_TYPE_MULTISIG_VALUE
SCRIPT_TYPE_MULTISIG = 5; |
static int |
SCRIPT_TYPE_NON_STANDARD_VALUE
SCRIPT_TYPE_NON_STANDARD = 7; |
static int |
SCRIPT_TYPE_NULLDATA_VALUE
SCRIPT_TYPE_NULLDATA = 6; |
static int |
SCRIPT_TYPE_PUBKEY_HASH_VALUE
SCRIPT_TYPE_PUBKEY_HASH = 0; |
static int |
SCRIPT_TYPE_PUBKEY_VALUE
SCRIPT_TYPE_PUBKEY = 4; |
static int |
SCRIPT_TYPE_SCRIPT_HASH_VALUE
SCRIPT_TYPE_SCRIPT_HASH = 1; |
static int |
SCRIPT_TYPE_WITNESS_UNKNOWN_VALUE
SCRIPT_TYPE_WITNESS_UNKNOWN = 8; |
static int |
SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH_VALUE
SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH = 2; |
static int |
SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH_VALUE
SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH = 3; |
static int |
SCRIPT_TYPE_WITNESS_V1_TAPROOT_VALUE
SCRIPT_TYPE_WITNESS_V1_TAPROOT = 9; |
Modifier and Type | Method and Description |
---|---|
static LightningApi.OutputScriptType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<LightningApi.OutputScriptType> |
internalGetValueMap() |
static LightningApi.OutputScriptType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LightningApi.OutputScriptType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LightningApi.OutputScriptType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LightningApi.OutputScriptType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LightningApi.OutputScriptType SCRIPT_TYPE_PUBKEY_HASH
SCRIPT_TYPE_PUBKEY_HASH = 0;
public static final LightningApi.OutputScriptType SCRIPT_TYPE_SCRIPT_HASH
SCRIPT_TYPE_SCRIPT_HASH = 1;
public static final LightningApi.OutputScriptType SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH
SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH = 2;
public static final LightningApi.OutputScriptType SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH
SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH = 3;
public static final LightningApi.OutputScriptType SCRIPT_TYPE_PUBKEY
SCRIPT_TYPE_PUBKEY = 4;
public static final LightningApi.OutputScriptType SCRIPT_TYPE_MULTISIG
SCRIPT_TYPE_MULTISIG = 5;
public static final LightningApi.OutputScriptType SCRIPT_TYPE_NULLDATA
SCRIPT_TYPE_NULLDATA = 6;
public static final LightningApi.OutputScriptType SCRIPT_TYPE_NON_STANDARD
SCRIPT_TYPE_NON_STANDARD = 7;
public static final LightningApi.OutputScriptType SCRIPT_TYPE_WITNESS_UNKNOWN
SCRIPT_TYPE_WITNESS_UNKNOWN = 8;
public static final LightningApi.OutputScriptType SCRIPT_TYPE_WITNESS_V1_TAPROOT
SCRIPT_TYPE_WITNESS_V1_TAPROOT = 9;
public static final LightningApi.OutputScriptType UNRECOGNIZED
public static final int SCRIPT_TYPE_PUBKEY_HASH_VALUE
SCRIPT_TYPE_PUBKEY_HASH = 0;
public static final int SCRIPT_TYPE_SCRIPT_HASH_VALUE
SCRIPT_TYPE_SCRIPT_HASH = 1;
public static final int SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH_VALUE
SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH = 2;
public static final int SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH_VALUE
SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH = 3;
public static final int SCRIPT_TYPE_PUBKEY_VALUE
SCRIPT_TYPE_PUBKEY = 4;
public static final int SCRIPT_TYPE_MULTISIG_VALUE
SCRIPT_TYPE_MULTISIG = 5;
public static final int SCRIPT_TYPE_NULLDATA_VALUE
SCRIPT_TYPE_NULLDATA = 6;
public static final int SCRIPT_TYPE_NON_STANDARD_VALUE
SCRIPT_TYPE_NON_STANDARD = 7;
public static final int SCRIPT_TYPE_WITNESS_UNKNOWN_VALUE
SCRIPT_TYPE_WITNESS_UNKNOWN = 8;
public static final int SCRIPT_TYPE_WITNESS_V1_TAPROOT_VALUE
SCRIPT_TYPE_WITNESS_V1_TAPROOT = 9;
public static LightningApi.OutputScriptType[] values()
for (LightningApi.OutputScriptType c : LightningApi.OutputScriptType.values()) System.out.println(c);
public static LightningApi.OutputScriptType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static LightningApi.OutputScriptType valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static LightningApi.OutputScriptType forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<LightningApi.OutputScriptType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static LightningApi.OutputScriptType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)