public static final class TrezorMessage.EthereumSignTx.Builder extends com.google.protobuf.GeneratedMessage.Builder<TrezorMessage.EthereumSignTx.Builder> implements TrezorMessage.EthereumSignTxOrBuilder
EthereumSignTx
Request: Ask device to sign transaction All fields are optional from the protocol's point of view. Each field defaults to value `0` if missing. Note: the first at most 1024 bytes of data MUST be transmitted as part of this message. @next PassphraseRequest @next PinMatrixRequest @next EthereumTxRequest @next Failure
Modifier and Type | Method and Description |
---|---|
TrezorMessage.EthereumSignTx.Builder |
addAddressN(int value)
repeated uint32 address_n = 1; |
TrezorMessage.EthereumSignTx.Builder |
addAllAddressN(Iterable<? extends Integer> values)
repeated uint32 address_n = 1; |
TrezorMessage.EthereumSignTx |
build() |
TrezorMessage.EthereumSignTx |
buildPartial() |
TrezorMessage.EthereumSignTx.Builder |
clear() |
TrezorMessage.EthereumSignTx.Builder |
clearAddressN()
repeated uint32 address_n = 1; |
TrezorMessage.EthereumSignTx.Builder |
clearDataInitialChunk()
optional bytes data_initial_chunk = 7; |
TrezorMessage.EthereumSignTx.Builder |
clearDataLength()
optional uint32 data_length = 8; |
TrezorMessage.EthereumSignTx.Builder |
clearGasLimit()
optional bytes gas_limit = 4; |
TrezorMessage.EthereumSignTx.Builder |
clearGasPrice()
optional bytes gas_price = 3; |
TrezorMessage.EthereumSignTx.Builder |
clearNonce()
optional bytes nonce = 2; |
TrezorMessage.EthereumSignTx.Builder |
clearTo()
optional bytes to = 5; |
TrezorMessage.EthereumSignTx.Builder |
clearValue()
optional bytes value = 6; |
TrezorMessage.EthereumSignTx.Builder |
clone() |
int |
getAddressN(int index)
repeated uint32 address_n = 1; |
int |
getAddressNCount()
repeated uint32 address_n = 1; |
List<Integer> |
getAddressNList()
repeated uint32 address_n = 1; |
com.google.protobuf.ByteString |
getDataInitialChunk()
optional bytes data_initial_chunk = 7; |
int |
getDataLength()
optional uint32 data_length = 8; |
TrezorMessage.EthereumSignTx |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getGasLimit()
optional bytes gas_limit = 4; |
com.google.protobuf.ByteString |
getGasPrice()
optional bytes gas_price = 3; |
com.google.protobuf.ByteString |
getNonce()
optional bytes nonce = 2; |
com.google.protobuf.ByteString |
getTo()
optional bytes to = 5; |
com.google.protobuf.ByteString |
getValue()
optional bytes value = 6; |
boolean |
hasDataInitialChunk()
optional bytes data_initial_chunk = 7; |
boolean |
hasDataLength()
optional uint32 data_length = 8; |
boolean |
hasGasLimit()
optional bytes gas_limit = 4; |
boolean |
hasGasPrice()
optional bytes gas_price = 3; |
boolean |
hasNonce()
optional bytes nonce = 2; |
boolean |
hasTo()
optional bytes to = 5; |
boolean |
hasValue()
optional bytes value = 6; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TrezorMessage.EthereumSignTx.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TrezorMessage.EthereumSignTx.Builder |
mergeFrom(com.google.protobuf.Message other) |
TrezorMessage.EthereumSignTx.Builder |
mergeFrom(TrezorMessage.EthereumSignTx other) |
TrezorMessage.EthereumSignTx.Builder |
setAddressN(int index,
int value)
repeated uint32 address_n = 1; |
TrezorMessage.EthereumSignTx.Builder |
setDataInitialChunk(com.google.protobuf.ByteString value)
optional bytes data_initial_chunk = 7; |
TrezorMessage.EthereumSignTx.Builder |
setDataLength(int value)
optional uint32 data_length = 8; |
TrezorMessage.EthereumSignTx.Builder |
setGasLimit(com.google.protobuf.ByteString value)
optional bytes gas_limit = 4; |
TrezorMessage.EthereumSignTx.Builder |
setGasPrice(com.google.protobuf.ByteString value)
optional bytes gas_price = 3; |
TrezorMessage.EthereumSignTx.Builder |
setNonce(com.google.protobuf.ByteString value)
optional bytes nonce = 2; |
TrezorMessage.EthereumSignTx.Builder |
setTo(com.google.protobuf.ByteString value)
optional bytes to = 5; |
TrezorMessage.EthereumSignTx.Builder |
setValue(com.google.protobuf.ByteString value)
optional bytes value = 6; |
addRepeatedField, clearField, clearOneof, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<TrezorMessage.EthereumSignTx.Builder>
public TrezorMessage.EthereumSignTx.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<TrezorMessage.EthereumSignTx.Builder>
public TrezorMessage.EthereumSignTx.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<TrezorMessage.EthereumSignTx.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<TrezorMessage.EthereumSignTx.Builder>
public TrezorMessage.EthereumSignTx getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TrezorMessage.EthereumSignTx build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TrezorMessage.EthereumSignTx buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TrezorMessage.EthereumSignTx.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TrezorMessage.EthereumSignTx.Builder>
public TrezorMessage.EthereumSignTx.Builder mergeFrom(TrezorMessage.EthereumSignTx other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<TrezorMessage.EthereumSignTx.Builder>
public TrezorMessage.EthereumSignTx.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TrezorMessage.EthereumSignTx.Builder>
IOException
public List<Integer> getAddressNList()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressNList
in interface TrezorMessage.EthereumSignTxOrBuilder
public int getAddressNCount()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressNCount
in interface TrezorMessage.EthereumSignTxOrBuilder
public int getAddressN(int index)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressN
in interface TrezorMessage.EthereumSignTxOrBuilder
public TrezorMessage.EthereumSignTx.Builder setAddressN(int index, int value)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
public TrezorMessage.EthereumSignTx.Builder addAddressN(int value)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
public TrezorMessage.EthereumSignTx.Builder addAllAddressN(Iterable<? extends Integer> values)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
public TrezorMessage.EthereumSignTx.Builder clearAddressN()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
public boolean hasNonce()
optional bytes nonce = 2;
<=256 bit unsigned big endian
hasNonce
in interface TrezorMessage.EthereumSignTxOrBuilder
public com.google.protobuf.ByteString getNonce()
optional bytes nonce = 2;
<=256 bit unsigned big endian
getNonce
in interface TrezorMessage.EthereumSignTxOrBuilder
public TrezorMessage.EthereumSignTx.Builder setNonce(com.google.protobuf.ByteString value)
optional bytes nonce = 2;
<=256 bit unsigned big endian
public TrezorMessage.EthereumSignTx.Builder clearNonce()
optional bytes nonce = 2;
<=256 bit unsigned big endian
public boolean hasGasPrice()
optional bytes gas_price = 3;
<=256 bit unsigned big endian (in wei)
hasGasPrice
in interface TrezorMessage.EthereumSignTxOrBuilder
public com.google.protobuf.ByteString getGasPrice()
optional bytes gas_price = 3;
<=256 bit unsigned big endian (in wei)
getGasPrice
in interface TrezorMessage.EthereumSignTxOrBuilder
public TrezorMessage.EthereumSignTx.Builder setGasPrice(com.google.protobuf.ByteString value)
optional bytes gas_price = 3;
<=256 bit unsigned big endian (in wei)
public TrezorMessage.EthereumSignTx.Builder clearGasPrice()
optional bytes gas_price = 3;
<=256 bit unsigned big endian (in wei)
public boolean hasGasLimit()
optional bytes gas_limit = 4;
<=256 bit unsigned big endian
hasGasLimit
in interface TrezorMessage.EthereumSignTxOrBuilder
public com.google.protobuf.ByteString getGasLimit()
optional bytes gas_limit = 4;
<=256 bit unsigned big endian
getGasLimit
in interface TrezorMessage.EthereumSignTxOrBuilder
public TrezorMessage.EthereumSignTx.Builder setGasLimit(com.google.protobuf.ByteString value)
optional bytes gas_limit = 4;
<=256 bit unsigned big endian
public TrezorMessage.EthereumSignTx.Builder clearGasLimit()
optional bytes gas_limit = 4;
<=256 bit unsigned big endian
public boolean hasTo()
optional bytes to = 5;
160 bit address hash
hasTo
in interface TrezorMessage.EthereumSignTxOrBuilder
public com.google.protobuf.ByteString getTo()
optional bytes to = 5;
160 bit address hash
getTo
in interface TrezorMessage.EthereumSignTxOrBuilder
public TrezorMessage.EthereumSignTx.Builder setTo(com.google.protobuf.ByteString value)
optional bytes to = 5;
160 bit address hash
public TrezorMessage.EthereumSignTx.Builder clearTo()
optional bytes to = 5;
160 bit address hash
public boolean hasValue()
optional bytes value = 6;
<=256 bit unsigned big endian (in wei)
hasValue
in interface TrezorMessage.EthereumSignTxOrBuilder
public com.google.protobuf.ByteString getValue()
optional bytes value = 6;
<=256 bit unsigned big endian (in wei)
getValue
in interface TrezorMessage.EthereumSignTxOrBuilder
public TrezorMessage.EthereumSignTx.Builder setValue(com.google.protobuf.ByteString value)
optional bytes value = 6;
<=256 bit unsigned big endian (in wei)
public TrezorMessage.EthereumSignTx.Builder clearValue()
optional bytes value = 6;
<=256 bit unsigned big endian (in wei)
public boolean hasDataInitialChunk()
optional bytes data_initial_chunk = 7;
The initial data chunk (<= 1024 bytes)
hasDataInitialChunk
in interface TrezorMessage.EthereumSignTxOrBuilder
public com.google.protobuf.ByteString getDataInitialChunk()
optional bytes data_initial_chunk = 7;
The initial data chunk (<= 1024 bytes)
getDataInitialChunk
in interface TrezorMessage.EthereumSignTxOrBuilder
public TrezorMessage.EthereumSignTx.Builder setDataInitialChunk(com.google.protobuf.ByteString value)
optional bytes data_initial_chunk = 7;
The initial data chunk (<= 1024 bytes)
public TrezorMessage.EthereumSignTx.Builder clearDataInitialChunk()
optional bytes data_initial_chunk = 7;
The initial data chunk (<= 1024 bytes)
public boolean hasDataLength()
optional uint32 data_length = 8;
Length of transaction payload
hasDataLength
in interface TrezorMessage.EthereumSignTxOrBuilder
public int getDataLength()
optional uint32 data_length = 8;
Length of transaction payload
getDataLength
in interface TrezorMessage.EthereumSignTxOrBuilder
public TrezorMessage.EthereumSignTx.Builder setDataLength(int value)
optional uint32 data_length = 8;
Length of transaction payload
public TrezorMessage.EthereumSignTx.Builder clearDataLength()
optional uint32 data_length = 8;
Length of transaction payload
Copyright © 2013–2016 Bitcoin Solutions Ltd. All rights reserved.