public static final class GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder> implements GetWithProof.GetAccountTransactionBySequenceNumberRequestOrBuilder
----------------------------------------------------------------------------- ---------------- Get single transaction by account + sequence number ----------------------------------------------------------------------------- Get transactions that altered an account - this includes both sent and received. A user of this should check that the data returned matches what they expect. As an example, a potential attack vector would be something like the following: Alice is buying an apple from Bob. Alice's phone signs a transaction X with sequence number N that pays coins to Bob. Alice transmits this signature to Bob's payment terminal which then submits the transaction and checks its status to see if Alice can be given the apple. However, as Bob is doing this Alice constructs a second transaction X' also with sequence number N. Alice gets that transaction inserted in the blockchain. If Bob isn't thoughtful about how he uses this API he may assume that if he asks for the N'th transaction on Alice's account that when the API returns that this means the transaction has gone through. The point here is that one should be careful in reading too much into "transaction X is on the chain" and focus on the logs, which tell you what the transaction did. If a client submitted a transaction, they should also verify that the hash of the returned transaction matches what they submitted. As an example, if a client has two wallets that share the same account, they may both submit a transaction at the same sequence number and only one will be committed. A client should never assume that if they receive the response that this transaction was included that it means that this is definitely the transaction that was submitted. They should check that the hash matches what they sentProtobuf type
types.GetAccountTransactionBySequenceNumberRequestgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder>public GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder>public GetWithProof.GetAccountTransactionBySequenceNumberRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GetWithProof.GetAccountTransactionBySequenceNumberRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GetWithProof.GetAccountTransactionBySequenceNumberRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder>public GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder>public GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder>public GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder>public GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder>public GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder>public GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder>public GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder mergeFrom(GetWithProof.GetAccountTransactionBySequenceNumberRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder>public GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder>IOExceptionpublic com.google.protobuf.ByteString getAccount()
Account for which to query transactions
bytes account = 1;getAccount in interface GetWithProof.GetAccountTransactionBySequenceNumberRequestOrBuilderpublic GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder setAccount(com.google.protobuf.ByteString value)
Account for which to query transactions
bytes account = 1;public GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder clearAccount()
Account for which to query transactions
bytes account = 1;public long getSequenceNumber()
uint64 sequence_number = 2;getSequenceNumber in interface GetWithProof.GetAccountTransactionBySequenceNumberRequestOrBuilderpublic GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder setSequenceNumber(long value)
uint64 sequence_number = 2;public GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder clearSequenceNumber()
uint64 sequence_number = 2;public boolean getFetchEvents()
Set to true to fetch events for the transaction at this version
bool fetch_events = 3;getFetchEvents in interface GetWithProof.GetAccountTransactionBySequenceNumberRequestOrBuilderpublic GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder setFetchEvents(boolean value)
Set to true to fetch events for the transaction at this version
bool fetch_events = 3;public GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder clearFetchEvents()
Set to true to fetch events for the transaction at this version
bool fetch_events = 3;public final GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder>public final GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder>Copyright © 2019. All rights reserved.