$THC Linux Walkthrough

edited June 22 in Support

Gather THC addresses for migration from your old HempCoin QT wallet by first Opening your HempCoin QT wallet this does NOT have to be synched fully.

Select File on the Menubar.

Select Receiving Addresses.

Copy Each Address that you want to migrate.

Unlock your QT wallet by Selecting Settings on the Menubar, then unlock wallet.

Enter your passphrase here if you created one to unlock your wallet then Press OK.

Open debug console by Selecting Tools on the Menubar, then debug console.

Enter (dumpprivkey Txxxxx) into the console, without the () and place your THC address in place of Txxxxx.

This will return your Private Key for the address you just input, KEEP THIS SAFE!!

Open a terminal to install THC from source.

Do not need to start the KMD chain itself to have access to the THC Smart Chain. 

sudo apt-get update 
sudo apt-get upgrade -y 
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool libncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libqrencode-dev libdb++-dev ntp ntpdate nano software-properties-common curl libevent-dev libcurl4-gnutls-dev cmake clang libsodium-dev -y 
cd ~ 
git clone https://github.com/komodoplatform/komodo --branch master --single-branch
cd komodo 
./zcutil/build.sh -j$(nproc) 
cd ~ 
mkdir .komodo
cd .komodo
mkdir THC
cd THC 
nano THC.conf 

Add the following lines to the THC.conf file (replace rpcuser and rpcpassword with your own) .


Change rpcpassword and rpcuser to something secure

press Ctrl + X to exit.

Press Y to select "Yes" to save changes you have just made.

Press Enter to select the file to save these changes to, it will default to the correct path.

cd ~
cd komodo/src 

Now you can start THC daemon to sync with the network.

./komodod -ac_name=THC -ac_supply=251253103 -ac_reward=360000000,300000000,240000000,180000000,150000000,90000000,0 -ac_staked=100 -ac_eras=7 -ac_end=500001,1000001,1500001,2000001,2500001,4500001,0 -ac_perc=233333333 -ac_cc=2 -ac_ccenable=229,236,240 -ac_script=2ea22c8020987fad30df055db6fd922c3a57e55d76601229ed3da3b31340112e773df3d0d28103120c008203000401ccb8 -ac_founders=150 -ac_cbmaturity=1 -ac_sapling=1 -addnode=1.eu.thc.electrum.dexstats.info:10020 -addnode=2.eu.thc.electrum.dexstats.info:10020 -earlytxid=7e4a76259e99c9379551389e9f757fc5f46c33ae922a8644dc2b187af2a6adc1 

You might see some outputs in terminal where you started the THC daemon. So, open a new tab or new terminal window and go to THC data directory to see updated logs of THC: 

tail -f ~/.komodo/THC/debug.log 

If you’re importing more than 1 THC WIF you should do,

./komodo-cli -ac_name=THC importprivkey <THC WIF> "" false 0 212

for all them but.. 

The very last one,

./komodo-cli -ac_name=THC importprivkey <THC WIF> "" true 0 212 

for the last one. True/false is telling the daemon whether or not to rescan, so if you use true for all of them it may take a very long time. 

Please join the Discord for support:


For technical and other info:


On staking:


To LOCK 100k THC:

1 - Create new address 

./komodo-cli -ac_name=THC getnewaddress 

2 - Validate address

 ./komodo-cli -ac_name=THC validateaddress Rxxxx 

this will return a value in { } you need to copy the pubkey 

3 - Set public key for THC while Daemon is running 

./komodo-cli -ac_name=THC setpubkey pubkey

4 - Lock 100k THC

 ./komodo-cli -ac_name=THC rewardslock THC 5b24f3dfc85fe880450696ff23f1268ab9b6e97cd21b09857f78b37e33c5b543 <amount to lock>

5 - Broadcast the output of rewardslock command which will be a wall of hex, take that hex and input

./komodo-cli -ac_name=THC sendrawtransaction <that hex>

Your coins will now be locked.

To see rewardslock info: 

./komodo-cli -ac_name=THC rewardsinfo 5b24f3dfc85fe880450696ff23f1268ab9b6e97cd21b09857f78b37e33c5b543

To stop the wallet:

./komodo-cli -ac_name=THC stop 

Show current block & wallet balance: 

./komodo-cli -ac_name=THC getinfo 

Create new receiving address: 

./komodo-cli -ac_name=THC getnewaddress

Send to an address:

./komodo-cli -ac_name=THC sendtoaddress "Raddress" "Amount"

replace "Raddress" with your newly created address returned from getnewaddress and the amount you want to send

htop: To monitor system load

slurm: To monitor network load 

tmux: To make panes

Sign In or Register to comment.