Get a transaction receipt
The transaction receipt gives you information about a transaction including whether or not the transaction reached consensus on the network. You request the receipt for every transaction type and there is currently no transaction fee associated with this network request.
Receipts can be requested from a Hedera network for up to 3 minutes.
Transaction Receipt Contents
The transaction receipt returns the following information about a transaction:
Whether the transaction reached consensus or not (success or fail)
The newly generated account ID, topic ID, token ID, file ID, schedule ID, scheduled transaction ID or smart contract ID
The exchange rate
The topic running hash
The topic sequence number
The total supply of token
The serial numbers for of the newly created NFTs after a token mint transaction was executed
Transaction Signing Requirements
Transaction receipt requests do not have an associated fee at this time so there is no signature requirement
Constructor | Description |
| Initializes the |
Transaction ID: The ID of the transaction to return the receipt for
Include Duplicates: Whether or not to include the receipts for duplicate transactions
Include Children: Whether or not to include the receipt for children transactions triggered by a parent transaction
Method | Type | Requirement |
| Required | |
| boolean | Optional |
| boolean | Optional |
Helper Methods
Method | Type | Description |
| TransactionReceipt | Returns the receipt of a transaction |
| Client, Duration | Request the receipt from the network for this duration |
| TransactionReceiptQuery | Returns the TransactionReceiptQuery response for a transaction. This will not error on bad status like |
| Client, Duration | Request receipt asynchronously for the provided duration |
| Status | Whether the transaction reached consensus or not |
| AccountId | The newly generated account ID |
| TopicId | The newly generated topic ID |
| FileId | The newly generated file ID |
| ContractId | The newly generated contract ID |
| TokenId | The newly generated token ID |
| ScheduleId | The newly generated schedule ID |
| TransactionId | The generated scheduled transaction ID |
| ExchangeRate | The exchange rate in hbar, cents, and expiration time |
| ByteString | The topic running hash |
| long | The topic sequence number |
| long | The total supply of a token |
| TransactionId | The transaction ID of the transaction the receipt is being requested for |
| List<long> | The list of newly created serial numbers upon execution of a token mint transaction. |
Sample Output:
``
Last updated