public static enum TrezorType.OutputScriptType extends Enum<TrezorType.OutputScriptType> implements com.google.protobuf.ProtocolMessageEnum
Type of script which will be used for transaction output @used_in TxOutputTypeProtobuf enum
OutputScriptType
Enum Constant and Description |
---|
PAYTOADDRESS
used for all addresses (bitcoin, p2sh, witness)
|
PAYTOMULTISIG
only for change output
|
PAYTOOPRETURN
op_return
|
PAYTOP2SHWITNESS
only for change output
|
PAYTOSCRIPTHASH
p2sh address (deprecated; use PAYTOADDRESS)
|
PAYTOWITNESS
only for change output
|
Modifier and Type | Field and Description |
---|---|
static int |
PAYTOADDRESS_VALUE
used for all addresses (bitcoin, p2sh, witness)
|
static int |
PAYTOMULTISIG_VALUE
only for change output
|
static int |
PAYTOOPRETURN_VALUE
op_return
|
static int |
PAYTOP2SHWITNESS_VALUE
only for change output
|
static int |
PAYTOSCRIPTHASH_VALUE
p2sh address (deprecated; use PAYTOADDRESS)
|
static int |
PAYTOWITNESS_VALUE
only for change output
|
Modifier and Type | Method and Description |
---|---|
static TrezorType.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<TrezorType.OutputScriptType> |
internalGetValueMap() |
static TrezorType.OutputScriptType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static TrezorType.OutputScriptType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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
used for all addresses (bitcoin, p2sh, witness)
PAYTOADDRESS = 0;
public static final TrezorType.OutputScriptType PAYTOSCRIPTHASH
p2sh address (deprecated; use PAYTOADDRESS)
PAYTOSCRIPTHASH = 1;
public static final TrezorType.OutputScriptType PAYTOMULTISIG
only for change output
PAYTOMULTISIG = 2;
public static final TrezorType.OutputScriptType PAYTOOPRETURN
op_return
PAYTOOPRETURN = 3;
public static final TrezorType.OutputScriptType PAYTOWITNESS
only for change output
PAYTOWITNESS = 4;
public static final TrezorType.OutputScriptType PAYTOP2SHWITNESS
only for change output
PAYTOP2SHWITNESS = 5;
public static final int PAYTOADDRESS_VALUE
used for all addresses (bitcoin, p2sh, witness)
PAYTOADDRESS = 0;
public static final int PAYTOSCRIPTHASH_VALUE
p2sh address (deprecated; use PAYTOADDRESS)
PAYTOSCRIPTHASH = 1;
public static final int PAYTOMULTISIG_VALUE
only for change output
PAYTOMULTISIG = 2;
public static final int PAYTOOPRETURN_VALUE
op_return
PAYTOOPRETURN = 3;
public static final int PAYTOWITNESS_VALUE
only for change output
PAYTOWITNESS = 4;
public static final int PAYTOP2SHWITNESS_VALUE
only for change output
PAYTOP2SHWITNESS = 5;
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
@Deprecated public static TrezorType.OutputScriptType valueOf(int value)
forNumber(int)
instead.public static TrezorType.OutputScriptType forNumber(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–2018 Bitcoin Solutions Ltd. All rights reserved.