Query Parameters
- hashstringREQUIRED
The hash of a transaction to retrieve
- provebooleanREQUIRED
Adds proofs of the transaction's inclusion in the block
Returns
- resultobject
The result object which contains the following fields:
- hashstring
(Optional) The hash of the transaction
- heightstring
(Optional) The height at which the transaction was included
- indexinteger
(Optional) The index of the transaction
- tx_resultobject
(Optional) The tx_result object which contains the following fields:
- codeinteger
Response code; 0 indicates success
- datastring
Result bytes from the application
- logstring
The log information of the transaction
- infostring
Additional information about the transaction result
- gas_wantedstring
Gas limit specified by the transaction
- gas_usedstring
Gas consumed by the transaction
- eventsarray
An array of events emitted by the transaction
- typestring
The type of the event
- attributesarray
An array of key-value attributes for the event
- keystring
The key of the attribute
- valuestring
The value of the attribute
- indexboolean
(Optional) The index of the attribute
- codespacestring
Namespace for the error code
- txstring
(Optional) The base64 encoded representation of the transaction
- proofobject
(Optional) Merkle proof of the transaction's inclusion in the block (returned when prove=true)
- root_hashstring
The root hash of the Merkle tree
- datastring
The base64-encoded transaction bytes included in the proof
- proofobject
Merkle proof metadata for the transaction
- totalstring
The total number of leaves in the Merkle tree
- indexstring
The index of this transaction's leaf in the Merkle tree
- leaf_hashstring
The hash of the leaf node
- auntsarray
Sibling hashes (aunts) used to reconstruct the Merkle path