Mytonctrl
A tool to run and maintain a TON node/validator
Install / Use
/learn @ton-blockchain/MytonctrlREADME
MyTonCtrl
MyTonCtrl is a console application that is used for launching and managing TON blockchain nodes.
The extended documentation can be found at https://docs.ton.org/v3/documentation/nodes/mytonctrl/overview and https://docs.ton.org/v3/guidelines/nodes/overview.
Operating Systems
It is recommended to use Ubuntu 22.04 LTS or Ubuntu 24.04 LTS for using MyTonCtrl. However, the full list of tested OS is below:
| Operating System | Status | |------------------|---------------| | Ubuntu 20.04 LTS | OK | | Ubuntu 22.04 LTS | OK | | Ubuntu 24.04 LTS | OK | | Debian 10 | Deprecated | | Debian 11 | OK | | Debian 12 | OK | | Debian 13 | Not supported |
Installation
Please note that during the installation and upgrade procedures, MyTonCtrl will need to escalate privileges using the sudo or su methods in order to upgrade / install system wide components. Depending on your environment, you may be prompted to enter the password for the root or sudo user.
Modes
MyTonCtrl supports these installation modes:
liteserver- run the node as a liteserver onlycollator- run the node as a collatorvalidator- run a validator node using the validator wallet for stakingsingle-nominator- run a validator node with single-nominator staking (recommended for validators)nominator-pool- run a validator node with nominator-pool stakingliquid-staking- run a validator node with liquid-staking enabled
single-nominator, nominator-pool, and liquid-staking all install a validator node and enable validator mode automatically.
You can change enabled modes later after installation.
Learn more about node types: https://docs.ton.org/v3/documentation/nodes/overview
Install
-
Download installation script:
wget https://raw.githubusercontent.com/ton-blockchain/mytonctrl/master/scripts/install.sh -
Run script with desired options:
sudo bash install.sh -m <mode>Or for Debian:
su root -c 'bash install.sh -m <mode>'
To install a full archive liteserver, use:
sudo bash install.sh -m liteserver --archive
To view all available installation options use bash install.sh --help
Installation configuration
You can also configure some installation parameters using environment variables. For example:
VALIDATOR_CONSOLE_PORT- port for validator console (default: random port in range 2000-65000)LITESERVER_PORT- port for liteserver (default: random port in range 2000-65000)VALIDATOR_PORT- port for validator (default: random port in range 2000-65000)
You can provide env file with allowed variables to installation script:
sudo bash install.sh -m <mode> --env-file /path/to/env/
Interactive CLI installer
To install MyTonCtrl using convenient interactive CLI installer, run the installation script without providing mode to it:
sudo bash install.sh [args]
You will be prompted to choose the installation mode and other options.
To run the interactive installer in dry-run mode, which will show you all the options you have selected and command
that will be executed during installation without actually installing MyTonCtrl, use flag --print-env:
sudo bash install.sh --print-env
After installation, you can run MyTonCtrl console using the command:
mytonctrl
Telemetry
By default, MyTonCtrl sends validator statistics to the https://toncenter.com server.
It is necessary to identify network abnormalities, as well as to quickly give feedback to developers.
To disable telemetry during installation, use the -t flag:
sudo bash install.sh -m <mode> -t
To disable telemetry after installation, do the following:
MyTonCtrl> set sendTelemetry false
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
