GETGet traces

TON Mainnethttps://ton-mainnet.nodit.io/api/v3/traces
CU150

Query traces that match the specified filters. Specify at most one of account, trace_id, tx_hash, and msg_hash.

Header Parameters
X-Actions-Versionstring

Action type or version shortcut. Overrides supported_action_types when supplied. Defaults to latest when neither is supplied.

Query Parameters
accountstring

Account address in hex, base64, or base64url form.

trace_idstring[]

Find traces by trace ID.

tx_hashstring[]

Find traces by transaction hash.

msg_hashstring[]

Find traces by message hash.

mc_seqnointeger (int32)

Query traces completed in the masterchain block with the specified sequence number.

start_utimeinteger (int32)

Query traces finished at or after the specified timestamp.

end_utimeinteger (int32)

Query traces finished at or before the specified timestamp.

start_ltinteger (int64)

Query traces where end_lt is at or above the specified value.

end_ltinteger (int64)

Query traces where end_lt is at or below the specified value.

include_actionsboolean

Include trace actions.

supported_action_typesstring[]

Supported action types or version shortcuts. See classification presets.

limitinteger (int32)

Limit the number of rows to return. Use with offset to batch requests.

offsetinteger (int32)

Skip the first N rows. Use with limit to batch requests.

sortstring (enum)

Sort traces by lt.

Responses
{address}object

Address book entry. The key is an address that appears in the response, in raw format workchain:hex.

domainstring

TON DNS domain linked to the address. null when no domain is associated.

interfacesstring[]

Contract interfaces detected for the address, for example wallet_v4r2. Can be null or empty when none are detected.

user_friendlystring

Address in user-friendly base64url format.

{address}object

Metadata entry. The key is the address of the token contract, in raw format workchain:hex.

is_indexedboolean

Whether the metadata for this address has been indexed. When false, token_info may not be available yet.

token_infoobject[]

List of token metadata entries (Jetton, NFT collection, or NFT item) associated with the address.

descriptionstring

Description of the token from its metadata.

extraobject

Additional metadata fields that are not covered by the other properties, for example decimals, uri, and resized image URLs.

imagestring

URL of the token image from its metadata.

is_nsfwboolean

Whether the token is flagged as NSFW (not safe for work) content.

is_scamboolean

Whether the token is flagged as a scam.

namestring

Name of the token from its metadata.

nft_indexstring

Index of the NFT item within its collection, as a decimal string. Present only for NFT items.

symbolstring

Ticker symbol of the token from its metadata. Present for Jettons.

typestring

Kind of token contract the metadata belongs to, for example jetton_masters, nft_collections, or nft_items.

validboolean

Whether the token metadata was retrieved and parsed successfully.

actionsobject[]

Actions classified from the trace. Returned for requests that include actions, such as include_actions=true.

raw_actionobject

Raw action data, included when the indexer cannot decode the action type.

accountsstring[]

Addresses of the accounts involved in the action, in raw format workchain:hex. Returned only when include_accounts is true.

action_idstring

Unique identifier of the action, base64 encoded.

detailsobject

Action details. The fields depend on the action type. The fields below are for a ton_transfer action, shown as a representative example. Refer to the action types reference for the fields of each action type.

sourcestring

Address of the sender account in raw format workchain:hex.

destinationstring

Address of the recipient account in raw format workchain:hex.

valuestring

Amount of GRAM transferred, in nanograms, as a decimal string.

value_extra_currenciesobject

Extra currencies transferred, as a map from currency ID to amount (decimal string). Empty when no extra currencies are transferred.

commentstring

Text comment attached to the transfer. null when the transfer has no comment.

encryptedboolean

Whether the attached comment is encrypted.

end_ltstring

Logical time (lt) at which the action ends, as a decimal string.

Example: 0

end_utimeinteger

Unix timestamp in seconds at which the action ends.

finalitystring (enum)

Finality state: pending, confirmed, or finalized.

start_ltstring

Logical time (lt) at which the action starts, as a decimal string.

Example: 0

start_utimeinteger

Unix timestamp in seconds at which the action starts.

successboolean

Whether the action completed successfully.

trace_end_ltstring

Logical time (lt) at which the trace that contains the action ends, as a decimal string.

Example: 0

trace_end_utimeinteger

Unix timestamp in seconds at which the trace that contains the action ends.

trace_external_hashstring

Hash of the external message that started the trace containing the action, base64 encoded.

trace_external_hash_normstring

Normalized hash of the external message that started the trace containing the action, base64 encoded.

trace_idstring

Identifier of the trace that contains the action, base64 encoded.

trace_mc_seqno_endinteger

Seqno of the masterchain block in which the trace containing the action ends.

transactionsstring[]

Hashes of the transactions that make up the action, base64 encoded.

transactions_fullobject[]

Full transaction objects for the transactions that make up the action. Returned only when include_transactions is true. Each object has the same structure as a transaction returned by the transactions API.

typestring

Action type, for example ton_transfer or jetton_transfer. Determines the shape of details.

parent_gasless_actionstring

The action_id of the gasless_request action that directly produced this action.

end_ltstring

Logical time (lt) at which the trace ended, as a decimal string. null if it is not yet available.

Example: 0

end_utimeinteger

Unix timestamp in seconds at which the trace ended. null if it is not yet available.

external_hashstring

Hash of the incoming message of the root transaction, typically the external message that started the trace, in base64.

is_incompleteboolean

true if the trace is returned without its full contents, for example when it has too many transactions to return; otherwise false. See warning for the reason.

mc_seqno_endstring

Sequence number (seqno) of the masterchain block in which the trace ended, as a decimal string.

Example: 0

mc_seqno_startstring

Sequence number (seqno) of the masterchain block in which the trace started, as a decimal string.

Example: 0

start_ltstring

Logical time (lt) at which the trace started, as a decimal string.

Example: 0

start_utimeinteger

Unix timestamp in seconds at which the trace started.

traceobject

Root node of the trace tree. Each node references a transaction and the transactions caused by its outgoing messages.

childrenobject[]

Child nodes of this node: the transactions caused by the outgoing messages of this transaction.

in_msgobject

Incoming message that triggered the transaction of this node. Omitted when the full message is not included. It has the same structure as the in_msg of a transaction returned by the transactions API.

in_msg_hashstring

Hash of the incoming message that triggered the transaction of this node, in base64.

transactionobject

Transaction of this node. Omitted when the full transaction is not included; look it up in the transactions map of the trace by tx_hash. It has the same structure as a transaction returned by the transactions API.

tx_hashstring

Hash of the transaction of this node, in base64.

trace_idstring

Identifier of the trace in base64. It equals the hash of the root transaction of the trace.

trace_infoobject

Summary of the trace: its state, message and transaction counts, and action classification state.

classification_statestring

State of action classification for the trace: unclassified, ok, failed, or broken.

messagesinteger

Number of messages in the trace.

pending_messagesinteger

Number of messages in the trace that have not been processed yet.

trace_statestring

State of the trace: complete, pending, or broken.

transactionsinteger

Number of transactions in the trace.

transactionsobject

Transactions of the trace as a map from transaction hash (base64) to transaction object.

{tx_hash}object

Transaction object. The key is the transaction hash in base64. It has the same structure as a transaction returned by the transactions API.

transactions_orderstring[]

Hashes of the transactions in the trace in base64, ordered by logical time (lt). Use them as keys of transactions.

warningstring

Warning message about the returned trace data, such as trace is too large. Omitted when there is no warning.

X-API-KEY
Request
cURL
curl -X GET "https://ton-mainnet.nodit.io/api/v3/traces?trace_id=kV6dYVpc%2Fu3R3PMH9yplqOLWXyrEIrrQBv5T1dfM%2BEg%3D&include_actions=true&limit=10&offset=0&sort=desc" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "X-Actions-Version: {X-Actions-Version}"
Response
Example · 200
{
  "traces": [
    {
      "trace_id": "kV6dYVpc/u3R3PMH9yplqOLWXyrEIrrQBv5T1dfM+Eg=",
      "external_hash": "+aXpOwDlXalln1btGiP+k3RTiT6PMWDzn4Kfo/1umq4=",
      "mc_seqno_start": "108057803",
      "mc_seqno_end": "108057803",
      "start_lt": "119343025000002",
      "start_utime": 1795751345,
      "end_lt": "119343025000002",
      "end_utime": 1795751345,
      "trace_info": {
        "trace_state": "complete",
        "messages": 1,
        "transactions": 1,
        "pending_messages": 0,
        "classification_state": "unclassified"
      },
      "is_incomplete": false,
      "actions": [
        {
          "trace_id": "kV6dYVpc/u3R3PMH9yplqOLWXyrEIrrQBv5T1dfM+Eg=",
          "action_id": "yLmCsFocJVBLEMGhM2QnUynWf6XYVtAfZ7kxjE49cf8=",
          "start_lt": "119343025000000",
          "end_lt": "119343025000002",
          "start_utime": 1795751345,
          "end_utime": 1795751345,
          "trace_end_lt": "119343025000002",
          "trace_end_utime": 1795751345,
          "trace_mc_seqno_end": 108057803,
          "transactions": [
            "kV6dYVpc/u3R3PMH9yplqOLWXyrEIrrQBv5T1dfM+Eg="
          ],
          "success": true,
          "type": "ton_transfer",
          "details": {
            "source": "-1:0000000000000000000000000000000000000000000000000000000000000000",
            "destination": "-1:3333333333333333333333333333333333333333333333333333333333333333",
            "value": "2704229645",
            "value_extra_currencies": {},
            "comment": null,
            "encrypted": false
          },
          "trace_external_hash": "+aXpOwDlXalln1btGiP+k3RTiT6PMWDzn4Kfo/1umq4=",
          "finality": "finalized"
        }
      ],
      "trace": {
        "tx_hash": "kV6dYVpc/u3R3PMH9yplqOLWXyrEIrrQBv5T1dfM+Eg=",
        "in_msg_hash": "+aXpOwDlXalln1btGiP+k3RTiT6PMWDzn4Kfo/1umq4=",
        "children": []
      },
      "transactions_order": [
        "kV6dYVpc/u3R3PMH9yplqOLWXyrEIrrQBv5T1dfM+Eg="
      ],
      "transactions": {
        "kV6dYVpc/u3R3PMH9yplqOLWXyrEIrrQBv5T1dfM+Eg=": {
          "account": "-1:3333333333333333333333333333333333333333333333333333333333333333",
          "hash": "kV6dYVpc/u3R3PMH9yplqOLWXyrEIrrQBv5T1dfM+Eg=",
          "lt": "119343025000002",
          "now": 1795751345,
          "mc_block_seqno": 108057803,
          "trace_id": "kV6dYVpc/u3R3PMH9yplqOLWXyrEIrrQBv5T1dfM+Eg=",
          "prev_trans_hash": "+wYwiMqkMZAOIvItic6P8EqkZYY8oRTAn9S3GtMQpds=",
          "prev_trans_lt": "119343025000001",
          "orig_status": "active",
          "end_status": "active",
          "total_fees": "0",
          "total_fees_extra_currencies": {},
          "description": {
            "type": "ord",
            "aborted": false,
            "destroyed": false,
            "credit_first": false,
            "storage_ph": {
              "storage_fees_collected": "0",
              "status_change": "unchanged"
            },
            "credit_ph": {
              "credit": "2704229645"
            },
            "compute_ph": {
              "skipped": false,
              "success": true,
              "msg_state_used": false,
              "account_activated": false,
              "gas_fees": "4874",
              "gas_used": "0",
              "gas_limit": "70000000",
              "mode": 0,
              "exit_code": 0,
              "vm_steps": 100,
              "vm_init_state_hash": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
              "vm_final_state_hash": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
            },
            "action": {
              "success": true,
              "valid": true,
              "no_funds": false,
              "status_change": "unchanged",
              "result_code": 0,
              "tot_actions": 0,
              "spec_actions": 0,
              "skipped_actions": 0,
              "msgs_created": 0,
              "action_list_hash": "lqKW0iTyhcZ77pPDD4owkVfw2qNdxbh+QQt4YwoJz8c=",
              "tot_msg_size": {
                "cells": "0",
                "bits": "0"
              }
            }
          },
          "block_ref": {
            "workchain": -1,
            "shard": "8000000000000000",
            "seqno": 108057803
          },
          "in_msg": {
            "hash": "+aXpOwDlXalln1btGiP+k3RTiT6PMWDzn4Kfo/1umq4=",
            "source": "-1:0000000000000000000000000000000000000000000000000000000000000000",
            "destination": "-1:3333333333333333333333333333333333333333333333333333333333333333",
            "value": "2704229645",
            "value_extra_currencies": {},
            "fwd_fee": "0",
            "ihr_fee": "0",
            "extra_flags": "0",
            "created_lt": "119343025000000",
            "created_at": "1795751345",
            "opcode": null,
            "decoded_opcode": null,
            "ihr_disabled": true,
            "bounce": true,
            "bounced": false,
            "import_fee": null,
            "message_content": {
              "hash": "lqKW0iTyhcZ77pPDD4owkVfw2qNdxbh+QQt4YwoJz8c=",
              "body": "te6cckEBAQEAAgAAAEysuc0=",
              "decoded": {
                "@type": "empty_cell"
              }
            },
            "init_state": null
          },
          "out_msgs": [],
          "account_state_before": {
            "hash": "/MHkBVmhjmKemj1A3Kuhw7FX67Pdk571uQeO4Rb2Ztk=",
            "balance": null,
            "extra_currencies": null,
            "account_status": null,
            "frozen_hash": null,
            "data_hash": null,
            "code_hash": null
          },
          "account_state_after": {
            "hash": "RBq/EL8qr6tKVhnIn7YVMYl/kyT6OwMk2Gp8DNzewyk=",
            "balance": "1381585218658643384",
            "extra_currencies": {},
            "account_status": "active",
            "frozen_hash": null,
            "data_hash": "72Mc37EwTjX8kodk227ITz/aeAAvsLuCBO1lTTp8OlM=",
            "code_hash": "Yhf4csmfr8uHDywRo2L1kzm+lQlfcNALnP8vbc1p090="
          },
          "emulated": false,
          "finality": "finalized"
        }
      }
    }
  ],
  "address_book": {
    "-1:0000000000000000000000000000000000000000000000000000000000000000": {
      "user_friendly": "Ef8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAU",
      "domain": null,
      "interfaces": []
    },
    "-1:3333333333333333333333333333333333333333333333333333333333333333": {
      "user_friendly": "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF",
      "domain": null,
      "interfaces": null
    }
  },
  "metadata": {}
}