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
+47-16Lines changed: 47 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,22 +28,29 @@ The genesis container supports additional environment variables that can be conf
28
28
The custom_env parameters will override the default genesis container environment variables, allowing you to customize blockchain configuration as needed.
29
29
More info on parameters can be found here <https://github.com/neodix42/mylocalton-docker/wiki/Genesis-setup-parameters>.
30
30
31
+
## Network Configuration
32
+
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
+
31
35
## Default Ports
32
36
33
-
The TON implementation exposes essential services:
37
+
The TON implementation exposes essential services through port mapping:
34
38
35
-
* TON Simple HTTP Server: Port 8000
36
-
* 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)
37
41
38
-
> Note: `tonutils-go` library is used for TON blockchain interactions, which requires a TON Lite Server connection. `tonutils-go` queries config file to determine the Lite Server connection details, which are provided by the MyLocalTon Docker environment.
42
+
The framework automatically handles port mapping and provides ready-to-use liteserver connection URLs.
39
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.
0 commit comments