public static enum TrezorType.OutputScriptType extends Enum<TrezorType.OutputScriptType> implements com.google.protobuf.ProtocolMessageEnum
OutputScriptType
Type of script which will be used for transaction output @used_in TxOutputType
Enum Constant and Description |
---|
PAYTOADDRESS
PAYTOADDRESS = 0; |
PAYTOMULTISIG
PAYTOMULTISIG = 2; |
PAYTOOPRETURN
PAYTOOPRETURN = 3; |
PAYTOP2SHWITNESS
PAYTOP2SHWITNESS = 5; |
PAYTOSCRIPTHASH
PAYTOSCRIPTHASH = 1; |
PAYTOWITNESS
PAYTOWITNESS = 4; |
Modifier and Type | Field and Description |
---|---|
static int |
PAYTOADDRESS_VALUE
PAYTOADDRESS = 0; |
static int |
PAYTOMULTISIG_VALUE
PAYTOMULTISIG = 2; |
static int |
PAYTOOPRETURN_VALUE
PAYTOOPRETURN = 3; |
static int |
PAYTOP2SHWITNESS_VALUE
PAYTOP2SHWITNESS = 5; |
static int |
PAYTOSCRIPTHASH_VALUE
PAYTOSCRIPTHASH = 1; |
static int |
PAYTOWITNESS_VALUE
PAYTOWITNESS = 4; |
Modifier and Type | Method and Description |
---|---|
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<TrezorType.OutputScriptType> |
internalGetValueMap() |
static TrezorType.OutputScriptType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static TrezorType.OutputScriptType |
valueOf(int value) |
static TrezorType.OutputScriptType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TrezorType.OutputScriptType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrezorType.OutputScriptType PAYTOADDRESS
PAYTOADDRESS = 0;
used for all addresses (bitcoin, p2sh, witness)
public static final TrezorType.OutputScriptType PAYTOSCRIPTHASH
PAYTOSCRIPTHASH = 1;
p2sh address (deprecated; use PAYTOADDRESS)
public static final TrezorType.OutputScriptType PAYTOMULTISIG
PAYTOMULTISIG = 2;
only for change output
public static final TrezorType.OutputScriptType PAYTOOPRETURN
PAYTOOPRETURN = 3;
op_return
public static final TrezorType.OutputScriptType PAYTOWITNESS
PAYTOWITNESS = 4;
only for change output
public static final TrezorType.OutputScriptType PAYTOP2SHWITNESS
PAYTOP2SHWITNESS = 5;
only for change output
public static final int PAYTOADDRESS_VALUE
PAYTOADDRESS = 0;
used for all addresses (bitcoin, p2sh, witness)
public static final int PAYTOSCRIPTHASH_VALUE
PAYTOSCRIPTHASH = 1;
p2sh address (deprecated; use PAYTOADDRESS)
public static final int PAYTOMULTISIG_VALUE
PAYTOMULTISIG = 2;
only for change output
public static final int PAYTOOPRETURN_VALUE
PAYTOOPRETURN = 3;
op_return
public static final int PAYTOWITNESS_VALUE
PAYTOWITNESS = 4;
only for change output
public static final int PAYTOP2SHWITNESS_VALUE
PAYTOP2SHWITNESS = 5;
only for change output
public static TrezorType.OutputScriptType[] values()
for (TrezorType.OutputScriptType c : TrezorType.OutputScriptType.values()) System.out.println(c);
public static TrezorType.OutputScriptType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
public static TrezorType.OutputScriptType valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<TrezorType.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 TrezorType.OutputScriptType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2013–2016 Bitcoin Solutions Ltd. All rights reserved.