Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class TransactionGetReceiptQuery
java.lang.Object
com.google.protobuf.AbstractMessageLite<TransactionGetReceiptQuery,TransactionGetReceiptQuery.Builder>
com.google.protobuf.GeneratedMessageLite<TransactionGetReceiptQuery,TransactionGetReceiptQuery.Builder>
com.hedera.hashgraph.sdk.proto.TransactionGetReceiptQuery
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,TransactionGetReceiptQueryOrBuilder
@Generated
public final class TransactionGetReceiptQuery
extends com.google.protobuf.GeneratedMessageLite<TransactionGetReceiptQuery,TransactionGetReceiptQuery.Builder>
implements TransactionGetReceiptQueryOrBuilder
* A query to retrieve a transaction receipt. This query retrieves the post-consensus (final) result of a transaction. A transaction receipt may not be available if queried too early (less than 5-10 seconds), or too late (more than 3 minutes). If a receipt is available, it contains basic transaction results. A query to a mirror node (or other archival system) is required to obtain full detail for a transaction, or any result after the basic receipt time period. This query is "free". The payment field in the header MUST be empty.<br/> If a receipt is not available, the response SHALL be `UNKNOWN`.<br/> A transaction receipt SHALL be available after the network reaches consensus for a transaction.<br/> A transaction receipt SHALL NOT be available after the end of the network configured "receipt period", typically three(3) minutes. <dl> <dt>What is the "first" transaction?</dt> <dd>The "first" transaction SHALL be the the transaction with the earliest consensus time and a status that is neither `INVALID_NODE_ACCOUNT` nor `INVALID_PAYER_SIGNATURE`.<br/> If no transaction is found meeting this status criteria, the "first" transaction SHALL be the transaction with the earliest consensus time.</dd> <dt>What is a "child" transaction?</dt> <dd>A "child" transaction is any transaction created in the process of completing another transaction. These are most common with a smart contract call, where a call to a contract may initiate one or more additional transactions to complete a complex process.</dd> </dl>Protobuf type
proto.TransactionGetReceiptQuery-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* A query to retrieve a transaction receipt.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static TransactionGetReceiptQuery* Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).boolean* A flag to request "child" receipts.boolean* A flag to request duplicates.* A transaction identifier.boolean* Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).boolean* A transaction identifier.newBuilder(TransactionGetReceiptQuery prototype) static TransactionGetReceiptQueryparseDelimitedFrom(InputStream input) static TransactionGetReceiptQueryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionGetReceiptQueryparseFrom(byte[] data) static TransactionGetReceiptQueryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionGetReceiptQueryparseFrom(com.google.protobuf.ByteString data) static TransactionGetReceiptQueryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionGetReceiptQueryparseFrom(com.google.protobuf.CodedInputStream input) static TransactionGetReceiptQueryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionGetReceiptQueryparseFrom(InputStream input) static TransactionGetReceiptQueryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransactionGetReceiptQueryparseFrom(ByteBuffer data) static TransactionGetReceiptQueryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TransactionGetReceiptQuery> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
HEADER_FIELD_NUMBER
public static final int HEADER_FIELD_NUMBER- See Also:
-
TRANSACTIONID_FIELD_NUMBER
public static final int TRANSACTIONID_FIELD_NUMBER- See Also:
-
INCLUDEDUPLICATES_FIELD_NUMBER
public static final int INCLUDEDUPLICATES_FIELD_NUMBER- See Also:
-
INCLUDE_CHILD_RECEIPTS_FIELD_NUMBER
public static final int INCLUDE_CHILD_RECEIPTS_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasHeader
public boolean hasHeader()* Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
.proto.QueryHeader header = 1;- Specified by:
hasHeaderin interfaceTransactionGetReceiptQueryOrBuilder- Returns:
- Whether the header field is set.
-
getHeader
* Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
.proto.QueryHeader header = 1;- Specified by:
getHeaderin interfaceTransactionGetReceiptQueryOrBuilder- Returns:
- The header.
-
hasTransactionID
public boolean hasTransactionID()* A transaction identifier. <p> This MUST contain the full identifier, as submitted, for the transaction to query.
.proto.TransactionID transactionID = 2;- Specified by:
hasTransactionIDin interfaceTransactionGetReceiptQueryOrBuilder- Returns:
- Whether the transactionID field is set.
-
getTransactionID
* A transaction identifier. <p> This MUST contain the full identifier, as submitted, for the transaction to query.
.proto.TransactionID transactionID = 2;- Specified by:
getTransactionIDin interfaceTransactionGetReceiptQueryOrBuilder- Returns:
- The transactionID.
-
getIncludeDuplicates
public boolean getIncludeDuplicates()* A flag to request duplicates. <p> If set, every transaction receipt within the receipt period that matches the requested transaction identifier SHALL be returned.<br/> If not set, duplicate transactions SHALL NOT be returned.<br/> If not set, only the receipt for the first matching transaction to reach consensus SHALL be returned.
bool includeDuplicates = 3;- Specified by:
getIncludeDuplicatesin interfaceTransactionGetReceiptQueryOrBuilder- Returns:
- The includeDuplicates.
-
getIncludeChildReceipts
public boolean getIncludeChildReceipts()* A flag to request "child" receipts. <p> If set, the response SHALL include receipts for each child transaction executed as part of the requested parent transaction.<br/> If not set, the response SHALL NOT include any receipts for child transactions.
bool include_child_receipts = 4;- Specified by:
getIncludeChildReceiptsin interfaceTransactionGetReceiptQueryOrBuilder- Returns:
- The includeChildReceipts.
-
parseFrom
public static TransactionGetReceiptQuery parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionGetReceiptQuery parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionGetReceiptQuery parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionGetReceiptQuery parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionGetReceiptQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransactionGetReceiptQuery parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TransactionGetReceiptQuery parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TransactionGetReceiptQuery parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static TransactionGetReceiptQuery parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static TransactionGetReceiptQuery parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<TransactionGetReceiptQuery,TransactionGetReceiptQuery.Builder>
-
getDefaultInstance
-
parser
-