Skip to content

Conversation

laviniat1996
Copy link
Collaborator

This adds the first two guides for the TON Center Cookbook:

  • wallet monitor
  • traces explanation

Copy link
Collaborator

@Kaladin13 Kaladin13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More context please

Traces expand a single transaction into a tree of all triggered calls, including intermediate contract executions, fees, and message flows.

This recipe is useful for:
- **Exchanges** validating deposits end-to-end
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+Bridges for indexing trace finality


---

## 1. Fetching a trace by transaction hash
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add more context, how we obtain this hash?

There is existing page about it in new docs, ask @Shvandre

---

## 2. Understanding the response

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's comment on what info is inside JSON, e.g. info about all trace txs steps and state changes

import fetch from "node-fetch";

const endpoint = "https://toncenter.com/api/v3/traces";
const txHash = "Vy11B+AiGGrDBcGx3UiUFUJozUQ3U2yHvaATSrS03og=";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment about externals

@anton-trunov
Copy link
Member

@laviniat1996 how is it going with this PR? it's been a while you pushed any fixes. do you need any help?

@laviniat1996
Copy link
Collaborator Author

@anton-trunov I'm still working on it. Traces is quite a big topic, and I am trying to cover it as good as possible. You can expect an update today

Copy link

github-actions bot commented Oct 7, 2025

To fix the formatting issues:

  1. Install necessary dependencies: npm ci
  2. Then, run this command:
npx remark -o --silent --silently-ignore ecosystem/rpc/cookbook/traces.mdx ecosystem/rpc/cookbook/wallet-monitor.mdx 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Ecosystem > RPC > TON Center Cookbook]
3 participants