public static final class GetWithProof.GetAccountTransactionBySequenceNumberRequest extends com.google.protobuf.GeneratedMessageV3 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.GetAccountTransactionBySequenceNumberRequest| Modifier and Type | Class and Description |
|---|---|
static class |
GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder
-----------------------------------------------------------------------------
---------------- Get single transaction by account + sequence number
-----------------------------------------------------------------------------
Get transactions that altered an account - this includes both sent and
received.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ACCOUNT_FIELD_NUMBER |
static int |
FETCH_EVENTS_FIELD_NUMBER |
static int |
SEQUENCE_NUMBER_FIELD_NUMBER |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ACCOUNT_FIELD_NUMBER
public static final int SEQUENCE_NUMBER_FIELD_NUMBER
public static final int FETCH_EVENTS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public com.google.protobuf.ByteString getAccount()
Account for which to query transactions
bytes account = 1;getAccount in interface GetWithProof.GetAccountTransactionBySequenceNumberRequestOrBuilderpublic long getSequenceNumber()
uint64 sequence_number = 2;getSequenceNumber in interface GetWithProof.GetAccountTransactionBySequenceNumberRequestOrBuilderpublic boolean getFetchEvents()
Set to true to fetch events for the transaction at this version
bool fetch_events = 3;getFetchEvents in interface GetWithProof.GetAccountTransactionBySequenceNumberRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static GetWithProof.GetAccountTransactionBySequenceNumberRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GetWithProof.GetAccountTransactionBySequenceNumberRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GetWithProof.GetAccountTransactionBySequenceNumberRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GetWithProof.GetAccountTransactionBySequenceNumberRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GetWithProof.GetAccountTransactionBySequenceNumberRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GetWithProof.GetAccountTransactionBySequenceNumberRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GetWithProof.GetAccountTransactionBySequenceNumberRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static GetWithProof.GetAccountTransactionBySequenceNumberRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GetWithProof.GetAccountTransactionBySequenceNumberRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GetWithProof.GetAccountTransactionBySequenceNumberRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GetWithProof.GetAccountTransactionBySequenceNumberRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GetWithProof.GetAccountTransactionBySequenceNumberRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder newBuilder()
public static GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder newBuilder(GetWithProof.GetAccountTransactionBySequenceNumberRequest prototype)
public GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GetWithProof.GetAccountTransactionBySequenceNumberRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GetWithProof.GetAccountTransactionBySequenceNumberRequest getDefaultInstance()
public static com.google.protobuf.Parser<GetWithProof.GetAccountTransactionBySequenceNumberRequest> parser()
public com.google.protobuf.Parser<GetWithProof.GetAccountTransactionBySequenceNumberRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public GetWithProof.GetAccountTransactionBySequenceNumberRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019. All rights reserved.