Launching a ChainCoin masternode- made easy

Crypto Wizard
4 min readJun 7, 2017

--

ChainCoin masternodes are an excellent way to get passive income. Below are instructions on how to set-up and start your first masternode:

Please see http://www.chaincoin.org for requirements for the VPS.

ATTENTION! New automated script and installation instructions here:

Video Tutorial found here:

If you wish to create the Masternode by hand and see what is behind the curtain please continue!

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

Once you have created and launched your masternode VPS, login as root and create a new user:

Run these commands:

adduser <newUsername>usermod -aG sudo <newUsername>

Now sign into your masternode with your new user. If you would like, secure the VPS using SSH. Please search youtube and http://www.chaincoin.org for instructions to secure your server using SSH.

Increase the swap file size so that the server utilizes all available memory. This is a necessary step otherwise the masternode daemon will crash.

Run these commands:

sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=1000;sudo mkswap /var/swap.img;sudo swapon /var/swap.img;sudo chmod 0600 /var/swap.img;sudo chown root:root /var/swap.img;sudo nano /etc/fstab

(A nano editor will open up, append this to the last line and save)
/var/swap.img none swap sw 0 0

Now we need to install the proper software dependencies:

Run this command and press ‘y’ (yes) to every prompt you receive while it installs:

sudo apt-get update;sudo apt-get install automake;sudo apt-get install libdb++-dev;sudo apt-get install build-essential libtool autotools-dev;sudo apt-get install autoconf pkg-config libssl-dev;sudo apt-get install libboost-all-dev;sudo apt-get install libminiupnpc-dev;sudo apt-get install git;sudo apt-get install software-properties-common;sudo apt-get install python-software-properties;sudo apt-get install g++;sudo add-apt-repository ppa:bitcoin/bitcoin;sudo apt-get update;sudo apt-get install libdb4.8-dev libdb4.8++-dev -y;

Now we have our dependencies installed. We can now install the ChainCoin software

Run these commands:

cd ~;git clone https://github.com/chaincoin/chaincoin.git;cd ~/chaincoin/sudo ./autogen.shsudo ./configure –-without-guimakesudo make installcd ~/.chaincoin/mkdir ~/.chaincoin/touch chaincoin.confnano chaincoin.conf

A nano editor of your chaincoin.conf will be opened. This is the configuration file to run your masternode. We will be creating and editing this config file.

Add these lines to chaincoin.conf:

rpcuser=<any-username>

rpcpassword=<any-unique-password>

server=1

Make sure to save your username and password somewhere safe

Close and save chaincoin.conf and start the chaincoin daemon:

cd ~chaincoind –-daemon

You should see a console output of Chaincoin Starting… Congratulations your node is up and running!

Now we need to set the wallet up, and send our 1000 CHC to our nodes wallet address

run these commands:
*if you receive an error chaincoin server connection failed but the chaincoin node is running, wait 45 seconds and run the commands again

chaincoind getaccountaddress 0

chaincoind masternode genkey

Make sure to save your wallet address, and wallet private key. Keep these safe

Now go to your main wallet, and send exactly 1000.00 CHC to your mastenodes wallet address

Now go to your masternode and see if your funds have arrived. Run this command to check

chaincoind getinfo

You now should see your 1000.00 in your wallet under ‘balance’. If you do not see it, do not worry; your node is probably not synced.

If you do not see your 1000.00 CHC in your wallet, run this command and wait for your wallet to sync (approx 3 hours):

watch chaincoind getinfo

Once your node finishes syncing, you will see the 1000.00 CHC in your balance. Press Ctrl + C to exit the ‘watch’ screen.

Stop the chaincoin node so that we can edit the chaincoin.conf file

chaincoind stop

Now we need to update our chaincoin.conf with our wallet address and wallet private key

Ensure you are in the home directory by running this:

cd ~

Then open chaincoin.conf in the nano editor:

sudo nano .chaincoin/chaincoin.conf

Add these lines to your chaincoin.conf and save:

listen=1

masternode=1

masternodeprivkey=<masternode-wallet-private-key>

masternodeaddr=<your server ip>:11994

Make sure to keep your wallet and private key safe

Your chaincoin masternode configuration is now complete!

You can now restart your chaincoin node and start your masternode!

*Note, you cannot start your masternode until your 1000.00 CHC transaction has at least 15 confirmations

Run these commands to restart chaincoin and start the masternode:

If you receive any errors running chaincoind commands after starting your chaincoind node, please wait 45 seconds and run the command again

cd ~chaincoind --daemonchaincoind listtransactions
(once transaction count for the intial 1000.00 is over 15, start the masternode)
-----chaincoind masternode start-----
if your wallet is encrypted run:
chaincoind walletpassphrase 'passphrase' 120 (no quotes)
chaincoind masternode start 'passphrase' (no quotes)

Success!! Your masternode is now up and running! Get ready to reap the rewards!

Check your wallet balance using the ChainCoin block explorer here:

http://104.238.153.140:3001/

I hope this tutorial was helpful, please post if you have any questions, bugs, or suggestions

Enjoy!

--

--

Crypto Wizard

Everything Blockchain, Money and Technology at the lowest level