Skip to main content

tx REST API Endpoint

Retrieves a transaction by hash.

Updated on
Jul 07, 2026

Query Parameters

hash
string
REQUIRED

The hash of a transaction to retrieve

prove
boolean
REQUIRED

Adds proofs of the transaction's inclusion in the block

Returns

result
object

The result object which contains the following fields:

hash
string

(Optional) The hash of the transaction

height
string

(Optional) The height at which the transaction was included

index
integer

(Optional) The index of the transaction

tx_result
object

(Optional) The tx_result object which contains the following fields:

code
integer

Response code; 0 indicates success

data
string

Result bytes from the application

log
string

The log information of the transaction

info
string

Additional information about the transaction result

gas_wanted
string

Gas limit specified by the transaction

gas_used
string

Gas consumed by the transaction

events
array

An array of events emitted by the transaction

type
string

The type of the event

attributes
array

An array of key-value attributes for the event

key
string

The key of the attribute

value
string

The value of the attribute

index
boolean

(Optional) The index of the attribute

codespace
string

Namespace for the error code

tx
string

(Optional) The base64 encoded representation of the transaction

proof
object

(Optional) Merkle proof of the transaction's inclusion in the block (returned when prove=true)

root_hash
string

The root hash of the Merkle tree

data
string

The base64-encoded transaction bytes included in the proof

proof
object

Merkle proof metadata for the transaction

total
string

The total number of leaves in the Merkle tree

index
string

The index of this transaction's leaf in the Merkle tree

leaf_hash
string

The hash of the leaf node

aunts
array

Sibling hashes (aunts) used to reconstruct the Merkle path

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free