You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/v3/guidelines/dapps/cookbook.mdx
+8-9Lines changed: 8 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -620,10 +620,9 @@ asyncio.run(main())
620
620
Although it is a common approach, [calling the GET method](/v3/guidelines/smart-contracts/get-methods#calling-get-methods-from-code) every time to retrieve the wallet address can be slow and resource-intensive.
621
621
However, if you know the jetton wallet code and storage structure, you can calculate the wallet address without making network requests.
622
622
623
-
624
-
<TabsgroupId="code-examples">
625
-
<TabItemvalue="example"label="Example">
626
-
623
+
<details>
624
+
<summary>Conceptual example</summary>
625
+
627
626
Using Tonviewer, you can get the jetton master contract address, for example `EQAJ8uWd7EBqsmpSWaRdf_I-8R8-XHwh3gsNKhy-UrdrPcUo`.
628
627
If we [go to this address](https://tonviewer.com/EQAJ8uWd7EBqsmpSWaRdf_I-8R8-XHwh3gsNKhy-UrdrPcUo?section=method) and open the Methods tab, we can see that there is already a `get_jetton_data` method there.
629
628
By calling it, we can get the hex form of the cell with the jetton wallet code:
Unfortunately, there is currently no tool like Sandbox for Python to emulate the blockchain.
782
-
However, you can still refer to this example and the `Example` tab to understand how to correctly construct the data needed to obtain the address.
781
+
However, you can still refer to this example and the `Conceptual example` spoiler to understand how to correctly construct the data needed to obtain the address.
0 commit comments