-
Notifications
You must be signed in to change notification settings - Fork 22
traces #603
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
Draft
aigerimu
wants to merge
22
commits into
main
Choose a base branch
from
trace
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
traces #603
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
22b1862
traces
aigerimu af0ce79
colors
aigerimu f0d9b1b
colorss
aigerimu 390e8f0
illustration
aigerimu 260057b
themes
aigerimu 59f008e
tick-tock example
aigerimu d76cb68
fixes
aigerimu 05fc2ef
Merge branch 'main' into trace
aigerimu 546e32e
checks
aigerimu 82d820a
ci
aigerimu 9585f04
Merge branch 'main' into trace
aigerimu eed2f0e
Merge branch 'main' into trace
aigerimu 0fd5d1e
links
aigerimu 999c62a
Merge branch 'main' into trace
aigerimu ced5312
Merge branch 'main' into trace
aigerimu 62da60e
ai
aigerimu 180587c
Merge branch 'main' into trace
aigerimu c3e7ec8
Merge branch 'main' into trace
aigerimu dd778ee
Merge branch 'main' into trace
verytactical 2eb8b2d
/
aigerimu 73b3ce1
Merge branch 'main' into trace
aigerimu e7d9330
file relocation
aigerimu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| --- | ||
| title: "Traces" | ||
| --- | ||
|
|
||
| import { Aside } from "/snippets/aside.jsx"; | ||
|
|
||
| A trace is a set of messages and transactions produced by a single external message. | ||
|
|
||
| Each _i-th_ transaction in the trace is triggered by a message sent during the action phase of some earlier _j-th_ transaction, where _j < i_. | ||
|
|
||
|  | ||
|
|
||
| All messages and transactions in the trace are ordered by their [logical time (lt)](/ton/tblkch#1-4-1-logical-time), reflecting their logical dependencies. The diagram shows transactions on independent accounts, each triggered by an incoming message, with `lt` values indicated for every message. | ||
|
|
||
|  | ||
|
|
||
| <Aside type={"note"}> | ||
| Transactions may be triggered not only by external messages but also by tick-tock events, commonly used within internal TON blockchain contracts, such as governance or elector contracts. | ||
| </Aside> | ||
|
|
||
|
|
||
| ## Using traces in Tonviewer | ||
|
|
||
| In [Tonviewer](https://tonviewer.com/), traces are visualized as **directed acyclic graphs (DAGs)**, where _transactions are nodes_ and _messages are edges_, showing the full sequence of account state changes triggered by a single external message. | ||
|
|
||
| ### Tracing operations | ||
|
|
||
| Traces offer **a high-level** view of an operation, illustrating how multiple transactions and messages interact to produce the final result. Within the graph, related transactions are grouped into human-readable actions, _providing developers with both the low-level transaction flow and the corresponding higher-level operations_. | ||
|
||
|
|
||
| **Example** | ||
|
|
||
| The NFT transfer illustrates a single operation that consists of **three transactions**, each triggered by messages. To learn how to read traces, follow [this article](/ecosystem/explorers/tonviewer#steps-to-analyze-an-operation). | ||
|
|
||
|  | ||
|
|
||
|
|
||
| ## High-level access using API | ||
|
|
||
| To fetch transaction data, use the high-level [`GET /traces`](/api-reference/actions/get-traces) endpoint. | ||
| This method allows you to retrieve all related transactions for a given operation, without parsing individual transactions. | ||
|
|
||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.