curl --request GET \
--url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v3/traces{
"traces": [
{
"trace_id": "<string>",
"external_hash": "<string>",
"mc_seqno_start": 123,
"mc_seqno_end": 123,
"start_lt": 123,
"start_utime": 123,
"end_lt": 123,
"end_utime": 123,
"state": "<string>",
"pending_edges": 123,
"edges": 123,
"nodes": 123,
"classification_state": "<string>"
}
],
"address_book": {}
}Retrieves transaction traces by specified filters
curl --request GET \
--url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v3/traces{
"traces": [
{
"trace_id": "<string>",
"external_hash": "<string>",
"mc_seqno_start": 123,
"mc_seqno_end": 123,
"start_lt": 123,
"start_utime": 123,
"end_lt": 123,
"end_utime": 123,
"state": "<string>",
"pending_edges": 123,
"edges": 123,
"nodes": 123,
"classification_state": "<string>"
}
],
"address_book": {}
}traces endpoint retrieves transaction traces from the TON blockchain. A trace represents the complete execution path of a transaction, including all resulting internal messages and their effects across the network.
trace_id (string, optional) — Filter by specific trace ID.tx_hash (string, optional) — Get traces for a specific transaction hash.tx_lt (integer, optional) — Filter by transaction logical time.limit (integer, optional) — Maximum number of traces to return. Default: 10.offset (integer, optional) — Number of traces to skip for pagination. Default: 0.sort (string, optional) — Sort order: asc or desc. Default: desc.traces (array) — Array of trace objects containing:
trace_id (string) — Unique identifier for the trace.external_hash (string) — Hash of the external message that initiated the trace.mc_seqno_start (integer) — Masterchain sequence number when the trace started.mc_seqno_end (integer) — Masterchain sequence number when the trace ended.start_lt (integer) — Logical time when the trace started.start_utime (integer) — Unix timestamp when the trace started.end_lt (integer) — Logical time when the trace ended.end_utime (integer) — Unix timestamp when the trace ended.state (string) — Current state of the trace (e.g., complete, pending).pending_edges (integer) — Number of pending message edges.edges (integer) — Total number of message edges in the trace.nodes (integer) — Total number of transaction nodes in the trace.classification_state (string) — Classification state of the trace.address_book (object) — Address book mapping raw addresses to user-friendly information.
traces endpoint is essential for understanding the complete execution flow of transactions:
curl -X GET \
'https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v3/traces?tx_hash=BhLJTdV2R6Vr5c3BAOjH8nFpnMYOuPcJvRlagGSKU88%3D&limit=1' \
-H 'accept: application/json'
Trace ID to filter by
Transaction hash to get traces for
Transaction logical time
Maximum number of traces to return
Number of traces to skip
Sort order
asc, desc Was this page helpful?