GETGet balance changes

TON Mainnethttps://ton-mainnet.nodit.io/api/v3/balanceChanges
CU60

Calculate balance changes for a trace or action. Supply trace_id or action_id. If only action_id is supplied, the API finds its trace.

Query Parameters
trace_idstring

Trace ID in standard base64. Convert a hex value to standard base64 before passing it. If supplied with action_id, the action is looked up within this trace.

action_idstring

Action ID in standard base64. Convert a hex value to standard base64 before passing it. If supplied, return changes for this action instead of the entire trace.

Responses
changesobject

Net Gram balance changes in nanograms by account address, including fees.

feesobject

Fees in nanograms by account address. These amounts are already deducted from changes.

jettonsobject

Signed Jetton balance changes, keyed by owner address and then Jetton master address. Amounts are decimal strings in smallest units, e.g., with decimals: 6, a -1250000 string represents a decrease of 1.25 jettons.

X-API-KEY
Request
cURL
curl -X GET "https://ton-mainnet.nodit.io/api/v3/balanceChanges?trace_id=RstqIOXPnun8qlq22k20gYz3C0rWFJG844ogiHhM4jc%3D" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "changes": {
    "0:B941E620DF58205A590B0D6EBE919C66B9BCEA7FCFD34F75633D221B7FA430A8": -300391071,
    "0:F76189D4D2CC27DA728F99C16608E0BB489A22D4FE7F03D7CF631B213277541D": 299635464
  },
  "fees": {
    "0:B941E620DF58205A590B0D6EBE919C66B9BCEA7FCFD34F75633D221B7FA430A8": 391071,
    "0:F76189D4D2CC27DA728F99C16608E0BB489A22D4FE7F03D7CF631B213277541D": 364536
  },
  "jettons": {}
}