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: book/src/framework/components/blockchains/ton.md
+45-18Lines changed: 45 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,23 +30,27 @@ More info on parameters can be found here <https://github.com/neodix42/mylocalto
30
30
31
31
## Network Configuration
32
32
33
-
The framework provides seamless access to the TON network configuration by embedding the config URL directly in the node URLs. The `ExternalHTTPUrl` and `InternalHTTPUrl`include the full path to `localhost.global.config.json`, which can be used directly with `liteclient.GetConfigFromUrl()` without additional URL formatting.
33
+
The framework provides direct access to TON liteserver connections through pre-formatted liteserver URLs. The `ExternalHTTPUrl` and `InternalHTTPUrl`contain ready-to-use liteserver connection strings in the format `liteserver://publickey@host:port`, eliminating the need to fetch and parse separate configuration files.
34
34
35
35
## Default Ports
36
36
37
-
The TON implementation exposes essential services:
37
+
The TON implementation exposes essential services through port mapping:
38
38
39
-
* TON Simple HTTP Server: Port 8000
40
-
* TON Lite Server: Port derived from base port + 100
39
+
***TON Simple HTTP Server**: External dynamic port → Internal port 8000
40
+
***TON Lite Server**: External dynamic port → Internal dynamic port (base + 100 offset)
41
41
42
-
> Note: `tonutils-go` library is used for TON blockchain interactions, which requires a TON Lite Server connection. The framework embeds the config URL directly in the node URLs for convenient access to the global configuration file needed by `tonutils-go`.
42
+
The framework automatically handles port mapping and provides ready-to-use liteserver connection URLs.
43
+
44
+
> Note: `tonutils-go` library is used for TON blockchain interactions, which requires a TON Lite Server connection. The framework provides direct liteserver:// URLs that can be used immediately without additional configuration parsing.
DefaultTonHlWalletMnemonic="twenty unfair stay entry during please water april fabric morning length lumber style tomorrow melody similar forum width ride render void rather custom coin"
26
-
27
-
liteServerPortOffset=100// internal, arbitrary offset for lite server port
0 commit comments