Get a transaction record
You can request a transaction record for up to 3 minutes after a transaction has reached consensus. This query returns a maximum of 180 records per request. The transaction record provides the following information about a transaction:
Transaction Record Contents
Property | Description |
---|---|
Transaction ID | The ID of the transaction. |
Consensus timestamp | The time the transaction reached consensus and was added to the ledger. |
Contract Call Result | Record of the value returned by the smart contract function (if it completed and didn't fail) from ContractCallTransaction. |
Contract Create Result | Record of the value returned by the smart contract constructor (if it completed and didn't fail) from ContractCreateTransaction. |
Receipt | The receipt of the transaction. |
Transaction Fee | The transaction fee that was charged. |
Transaction Hash | The transaction hash. |
Transaction Memo | The transaction memo if there was one added. |
Transfers | A list of transfers made in the transaction. The list of transfers includes a payment made to the node, the service fee, and transaction fee. |
Token Transfers | A list of the token transfers . |
ScheduleRef | The schedule ID of the schedule transaction the record represents. |
Assessed Custom Fees | This field applies to tokens that have custom fees and returns the custom fee(s) assessed in a token transfer transaction. This includes the amount, token ID, fee collector account ID (if applicable), and effective payer account ID. The effective payer accounts are accounts that were charged the custom fees. |
Automatic Associations | The token(s) that were auto associated to the account in this transaction, if any |
Alias | In the record of an internal |
Parent Consensus Timestamp | The parent consensus timestamp is found in the record of a child transaction. The parent consensus timestamp is the consensus timestamp related to the parent transaction to this child transaction. |
Ethereum Hash | The keccak256 hash of the ethereumData. This field will only be populated for EthereumTransaction. |
Paid Staking Rewards | List of accounts with the corresponding staking rewards paid as a result of a transaction. See HIP-406.
Network: |
PRNG Bytes | In the record of a PRNG transaction with no output range, a pseudorandom 384-bit string. See HIP-351.
Network: |
PRNG Number | In the record of a PRNG transaction with an output range, the output of a PRNG whose input was a 384-bit string. See HIP-351.
Network: |
Pending Airdrop | The ID of the pending airdrops as a result of the transaction. |
Include Children | Whether or not to include the record for children transactions triggered by a parent transaction. |
Include Duplicates | Whether or not to include the receipts for duplicate transactions. |
Reject Airdrop | Transfer one or more tokens or token balances held by the requesting account to the treasury for each token type. |
Transaction Signing Requirements
The client operator account private key is required to sign
Constructor | Description |
| Initializes the |
Method | Type | Requirement |
| TransactionId | Required |
| boolean | Optional |
| boolean | Optional |
Methods
Method | Type | Requirement |
| TransactionRecord | Required |
| TransactionId | Optional |
| Instant | Optional |
| ContractFunctionResult | Optional |
| TransactionReceipt | Optional |
| Hbar | Optional |
| ByteString | Optional |
| String | Optional |
| List<Transfer> | Optional |
| Map<TokenId, Map<AccountId, List<Long>>> | Optional |
| ScheduleId | Optional |
| List<AssessedCustomFees> | Optional |
| List<TokenAssociation> | Optional |
| ByteString | Optional |
| Instant | Optional |
| List<Transfer> | Optional |
| ByteString | Optional |
| Integer | Optional |
Last updated