-
Notifications
You must be signed in to change notification settings - Fork 0
add ton center cookbook guides #493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 | ||
|
There was a problem hiding this comment.
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="; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment about externals
@laviniat1996 how is it going with this PR? it's been a while you pushed any fixes. do you need any help? |
@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 |
To fix the formatting issues:
npx remark -o --silent --silently-ignore ecosystem/rpc/cookbook/traces.mdx ecosystem/rpc/cookbook/wallet-monitor.mdx |
This adds the first two guides for the TON Center Cookbook: