Skip to content

Instantly share code, notes, and snippets.

Last active June 21, 2022 00:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Basics of TecraCoin console commands need for masternode update

TecraCoin console basics

QT console commands

Get new address (twice)

Get "ownerAddress" and "payoutAddress"

"ownerAddress" need to be unique - you can register only one masternode using one address.


Get list of usable outputs

Get "collateralHash" and "collateralIndex"

evotnode outputs

Generate new masternode keypair

Get "operatorPubKey" (public) and "tnodeblsprivkey" (secret).

This key pair is unique - you can register only one masternode per key pair.

bls generate

Find address to use for network fee payment

Get "feeSourceAddress"

listaddressbalances 0.1

Unlock wallet for 60 seconds

walletpassphrase "YourWalletPassword" 60

Register masternode in new system

protx register "collateralHash" "collateralIndex" "ip:Port" "ownerAddress" "operatorPubKey" "" 0 "payoutAddress" "feeSourceAddress"

TecraCoin commands on masternode server, update to new system

Download and unpack tnode.tar.gz

rm -rf tecracoin-1.*  #delete all old versions
rm -f tnode.tar.gz    #delete old tnode zip file if exist
wget   #download binary from github
tar xzf tnode.tar.gz  #unpack to ./bin/ directory

Stop daemon

bin/tecracoin-cli stop

Minimum entry in masternode .tecracoin/tecracoin.conf

Can be edited using nano, vi, mcedit…

server = 1                  #accept commands from tecracoin-cli
daemon = 1                  #start in background
tnode = 1                   #this is a tnode
tnodeblsprivkey = xxxxx     #new system
externalip = xx.xx.x.xx     #if more than one IP on machine 

Start daemon


Node information

bin/tecracoin-cli getinfo

Masternode status

bin/tecracoin-cli tnode status


Autostart daemon on boot

crontab -e  #start crontab editor

add line

@reboot /root/bin/tecracoind

Peek end of log file

tail .tecracoin/debug.log

Peek and follow end of log (break by crtl+c)

tail -f .tecracoin/debug.log
Copy link


Copy link


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment