Skip to main content

tx REST API Endpoint

Retrieves a transaction by hash.

Updated on
May 15, 2024

tx REST API Endpoint

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
The hash of the transaction
height
The height at which the transaction was included
index
The index of the transaction
tx_result
object
The tx_result object which contains the following fields:
log
The log information of the transaction
gas_wanted
Gas limit specified by the transaction
gas_used
Gas consumed by the transaction
tags
object
The tags object which contains the following fields:
key
The key associated with the tag
value
The value associated with the tag
index
The index of the tag
tx
The base64 encoded representation of the transaction
Request
1
curl --location 'https://docs-demo.cosmos-mainnet.quiknode.pro/tx?hash=0x29452510AC68D7C63E3B45024BE446DB03A3CFCC595AA88723C4DE4C8DB57956&prove=true'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free