Master node Guide
There are many different ways to set-up a masternode. This method requires a Virtual Private Server, eliminating the need to run your own computer 24/7. Your funds are also safely stored on your local wallet, not the VPS.
ubuntu 16.04
sudo apt update
sudo apt upgrade
sudo apt-get install unzip
sudo apt-get install libboost-all-dev
sudo apt-get install libdb++-dev
sudo apt-get install libminiupnpc-dev
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
wget https://github.com/babychain/BABY/releases/download/3.0.99/babychain-ubuntu16.zip
unzip babychain-ubuntu16.zip
cd babychain-ubuntu16
chmod 777 babyd
./babyd
ctrl+c out
Create a MasterNode Address (ALIAS) & send collateral
Open the BABYCHAIN wallet, go to File > Receiving Addresses > New
Name the Label and hit OK. The Label is your masternode ALIAS.
While you are still in the Receiving Addresses table, select the address you just created and hit the Copy button. Close this window.
Next you will need to send the collateral (EXACTLY 10,000BABY) to this address. Do so by going to the Send tab and pasting the Address you just copied to the Pay To: field. The Label should automatically show up as the one you just named. Enter exactly 10,000BABY into the amount field and hit Send. PS. This address belong to your account, you essentially send money to yourself. Your funds will stay in your account.
Now go to the Transactions tab and double click on the Transaction you just made. Record the TRANSACTION_ID in Notepad, it will be required in the next step. You also need to wait until 20+ confirmations on this transaction before continuing .
MasterNode private key & Index ID
Go to Tools>Debug Console
Type the following command and copy the generated key to Notepad, this will be your PRIVATE_KEY
While in debug console, type in the following and copy the last digit in quotations, this will be your INDEX_ID
masternode.conf
mn1 VPS_IP:55442 PRIVATE_KEY TRANSACTION_ID INDEX_ID
Next, open “baby.conf” with Notepad and add the following: (change the text in bold)
rpcallowip=127.0.0.1
rpcuser=ANY_LONG_USERNAME
rpcpassword=ANY_LONG_PASSWORD
staking=1
server=1
listen=1
daemon=1
port=55442
masternode=1
masternodeaddr=vps_ip:55442
externalip=vps_ip:55442
masternodeprivkey=PRIVATE_KEY
next ubuntu 16.04
insert
rpcallowip=127.0.0.1
rpcuser=ANY_LONG_USERNAME
rpcpassword=ANY_LONG_PASSWORD
staking=1
server=1
listen=1
daemon=1
port=55442
masternode=1
masternodeaddr=vps_ip:55442
externalip=vps_ip:55442
masternodeprivkey=PRIVATE_KEY
save exit
vi /root/.baby/masternode.conf
mn1 VPS_IP:55442 PRIVATE_KEY TRANSACTION_ID INDEX_ID
save exit
Close the local wallet on your desktop and open it again for settings to take effect.
nohup ./babyd > /dev/null 2>&1 &
Start MasterNode
In your local wallet, go to Tools>Debug Console and type:
startmasternode alias false mn1
Check in your wallet>Masternodes tab. If the Status is ENABLED, your masternode is running.