Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2404 of /usr/share/drupal7/includes/

TON miner (PoW) and validator (PoS) on AWS and GCP

TON (The Open Network), or TONcoin, former Telegram Open Network founded by the instant messaging app Telegram.

Miner - PoW

We can use GPU for mining.

AWS g4ad

AMD EPYC CPU + AMD Radeon Pro V520 GPU.

  • Lower price, better TON mining performance, better C/P value.
  • ETH (ethash) hash rate is low, so not for dual mining.

Make sure to use Ubuntu 18.04, as AWS doesn't provide Ubuntu 20.04 drivers.

Install GPU driver.

sudo apt install -y unzip
curl "" -o ""
sudo ./aws/install
aws --version

sudo dpkg --add-architecture i386
sudo apt-get update -y && sudo apt upgrade -y
sudo shutdown -r now

aws s3 cp --recursive s3://ec2-amd-linux-drivers/latest/ .
tar -xf amdgpu-pro*ubuntu*.xz
cd amdgpu*/
sudo apt install linux-modules-extra-$(uname -r) -y
cat RPM-GPG-KEY-amdgpu | sudo apt-key add -

./amdgpu-pro-install -y --opencl=pal,legacy
sudo shutdown -r now

dmesg | grep amdgpu

Install miner

tar zxvf teamredminer-v*-linux.tgz 
cd teamredminer-v*-linux
./teamredminer -a ton -o stratum+tcp:// -u EQB6no6mqZrsC9qfHZQ1DU0ZDTW5sDjtwOm9sSuVPGEpFpn2.trmtest -p x

AWS G4dn

Intel CPU + nVidia Tesla T4 GPU.

  • A little higher price, slightly lower TON mining performance.
  • ETH (ethash) hashrate =~ 25 MH/s. But still not able to cover instance cost. Not recommend.

Use Ubuntu 20.04.

Install GPU driver.

distribution=$(. /etc/os-release;echo $ID$VERSION_ID | sed -e 's/\.//g')
sudo mv cuda-$ /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys$distribution/x86_64/
echo "deb$distribution/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list
sudo apt-get update
sudo apt-get install -y linux-headers-$(uname -r) cuda cuda-drivers byobu screen
sudo apt-get clean
sudo shutdown -r now

export PATH=/usr/local/cuda-11.6/bin${PATH:+:${PATH}}
sudo /usr/bin/nvidia-persistenced --verbose
git clone
cd cuda-samples/

sudo nvidia-smi --auto-boost-default=0
sudo nvidia-smi -ac 5001,1590

Install miner

  • danila-miner
tar zxvf danila*
./danila-miner run EQB6no6mqZrsC9qfHZQ1DU0ZDTW5sDjtwOm9sSuVPGEpFpn2
  • gminer
mkdir gminer && cd gminer
tar xvf gminer*

./miner --algo ton --server stratum+tcp:// --user EQB6no6mqZrsC9qfHZQ1DU0ZDTW5sDjtwOm9sSuVPGEpFpn2 --cuda

./miner --algo eth+ton --server stratum+tcp:// --user bluet0626.001 --worker bluet0626.001 --dserver stratum+tcp:// --duser EQB6no6mqZrsC9qfHZQ1DU0ZDTW5sDjtwOm9sSuVPGEpFpn2 --cuda

Validator - PoS

As the software toolkit mytonctrl doesn't support GPU accelerating, use CPU for validator.

Instance Types

  • GCP
    • n2d.highcpu-224: 224 AMD EPYC vCPU cores.
  • AWS
    • c6a.48xlarge: 192 AMD EPYC vCPU cores.

Use Ubuntu 20.04.

Install validator

sudo bash -m full
> emi


If you find this useful, please donate:

  • TON: EQB6no6mqZrsC9qfHZQ1DU0ZDTW5sDjtwOm9sSuVPGEpFpn2
  • ERC20 Tokens: ETH/BNB/MATIC (Ethereum / BSC / Polygon): 0x6c4E28D24836E5eD2639354151534dF9E5c274Ab
    • or use my ENS name: bluet.eth

If you're interested in building mining farms or PoS validator project, please COUNT ME IN!

Add new comment