Prerequisites
- Java Development Kit (JDK) 21 or newer in your
PATH
. - Python 3.x if you plan to enable the optional HTTP API bridge.
- On Windows, install the Microsoft Visual C++ 2015+ x64 Redistributable.
- Allocate at least 4 CPU cores, 16 GB RAM, and 20 GB of free disk space for smooth operation.
Download and install
Windows
- Install the Visual C++ Redistributable.
- Download the JAR that matches your architecture from the MyLocalTon releases.
MyLocalTon-x86-64.jar
for x86-64 systems.MyLocalTon-arm64.jar
for ARM64 systems.
macOS and Linux
chmod +x MyLocalTon-*.jar
.
Build from source
target/
when the build finishes.
Launch the local network
Flag | Description |
---|---|
nogui | Run in headless mode without the Swing interface. |
with-validators=<N> | Start N validator instances (default: 1). |
explorer | Launch the bundled block explorer. |
ton-http-api | Start the HTTP API bridge (requires Python + ton-http-api ). |
custom-binaries=<PATH> | Load TON binaries from a custom directory. |
ip.addr.X.X | Bind services to a specific local IP. |
debug | Increase log verbosity for troubleshooting. |
myLocalTon/
workspace alongside the JAR. Validators, liteserver certificates, and logs live in this directory.
Connect CLI tools
MyLocalTon prints the lite-server public key during startup and stores certificates in./myLocalTon/genesis/bin/certs/
.
<BASE64_PUBLIC_KEY>
with the key printed in the MyLocalTon logs.
Enable the HTTP API bridge
Install Python dependencies on the host system, then restart MyLocalTon with theton-http-api
flag.
Monitor and maintain
- Tail
myLocalTon/MyLocalTon.log
for application-level events. - Validator logs reside in
myLocalTon/genesis/db/log
. - Re-run with
debug
when reproducing issues. - Upgrade by downloading the latest JAR, replacing the existing file, and deleting the
myLocalTon
directory so the genesis state regenerates.
Troubleshooting tips
Symptom | Resolution |
---|---|
JAR fails to start | Verify Java 21+ is installed and the file is not quarantined by the OS (macOS: xattr -d com.apple.quarantine <JAR> ). |
Lite-client handshake fails | Confirm you are using the current public key from startup logs and that ports 4441/4443 are free. |
HTTP API errors | Ensure Python 3 and ton-http-api are installed globally or in the same user context as MyLocalTon. |
Need a clean reset | Stop the process, delete the myLocalTon folder, and restart the JAR to regenerate the network. |
Where to go next
- Graduate to production setups with Setting up a node using MyTonCtrl.
- Explore node roles and responsibilities in the node overview.