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
string
The unique hash identifier of the transaction
height
string
The block height where the transaction is included, representing its position in the blockchain
index
integer
The index position of the transaction within the block
tx_result
object
The tx_result object which contains the following fields:
code
integer
The status code for the transaction, with '0' indicating success
data
string
Encoded data payload containing transaction-specific response information
log
string
Log of transaction events in JSON format, detailing each action within the transaction
info
string
Additional information about the transaction, often provided for debugging or descriptive purposes
gas_wanted
string
The amount of gas requested for the transaction
gas_used
string
The actual amount of gas consumed during the transaction's execution
events
array
An array of events triggered by the transaction
type
string
Type of event, such as 'coin_spent' or 'message'
attributes
array
An array of attributes providing details for each event
key
string
Key of the attribute, indicating a specific aspect of the event
value
string
Value associated with the key, providing additional details for the event
index
boolean
Indicates if this attribute is indexed for easier querying
codespace
string
Namespace for the error code, if an error occurred
tx
string
The raw transaction data in encoded format
proof
object
The proof object which contains the following fields:
data
string
Encoded data representing the proof structure
share_proofs
array
An array of share_proofs, each verifying a piece of the data
end
integer
The endpoint of the data segment verified by this share proof
nodes
string
Encoded nodes in the proof, forming part of the verification path
namespace_id
string
Identifier for the namespace to which this proof belongs
row_proof
object
The row_proof object which contains the following fields:
row_roots
string
Encoded roots of the rows, verifying the data row by row
proofs
array
An array of proof objects providing the verification details for each segment
total
string
Total number of elements covered by this proof
index
string
Index position of the segment within the proof
leaf_hash
string
Hash of the leaf node, used for verifying this segment
aunts
string
Intermediate nodes in the Merkle tree for verification
start_row
integer
The starting row for this row proof, indicating where verification begins
end_row
integer
The ending row for this row proof, indicating where verification concludes
namespace_version
integer
Version identifier for the namespace used in this proof
Request
1curl --location 'https://docs-demo.celestia-mainnet.quiknode.pro/tx?hash=0xFCD7703AB30EFD5CF45FE6A21D8B47DDFC0A0A11122E294D751EB0F676FB4980&prove=true'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free