Current BTC price : $ 9,009.009009  •  Crypto-currencies live : 81  •  Masternodes Online : 49,351  •  Last currency added : MARTK Martkist (MARTK)

Energi (NRG) Energi - Masternode Setup Guide



This guide is for a single masternode, on a Ubuntu 16.04 server (VPS) and will be controlled from the wallet on your local computer. (Cold Wallet)
The wallet on the the VPS will be referred as the Remote wallet.

First the basic requirements:

We are going to use some variables in this guide, you will find them in red and bold. You have to replace this variables with your own information

Choose a VPS

We will use OVH (OVH VPS) as an example of a VPS, but you can use any provider you prefer, you can check Vultr, Amazon AWS, Google Cloud.

1) Choose a VPS type, VPS SSD 1 can be use to run a masternode

2) Configure your VPS, with operating system only, and choose Ubuntu 16.04 Server

3) Skip the optional option

4) Review and order the VPS

Cold Wallet - installation

1) From Github, download the latest QT wallet, on your local computer.

2) Run the cold wallet and wait for a full sync, you can check the sync status on the bottom right corner

3) Configure the cold wallet to have the Masternode Tab and then restart the wallet
(Settings -> Options -> Wallet) check: Show Masternode Tab

Cold Wallet - configuration

1) Using the cold wallet, enter the debug console (Tools > Debug console) and type the following command
masternode genkey 
In output, you get the variable Masternode Private Key

2) Using the cold wallet still, enter the following command
getaccountaddress Name of Masternode
In output, you get the variable Masternode Address

3) Send 10,000 NRG to Masternode Address

4) Still in the cold wallet, enter this command into the console
masternode outputs 
In output, you get the variables Collateral Output TXID and Collateral Output Index

5) Open masternode.conf file and add the following line to it
(Tools -> Open Masternode Configuration File)
"Name of Masternode" "IP address":9797 "Masternode Private Key" "Collateral Output TXID" "Collateral Output Index"
MN1 892WPpkqbr7sr6Si4fdsfssjjapuFzAXwETCrpPJubnrmU6aKzh c8f4965ea57a68d0e6dd384324dfd28cfbe0c801015b973e7331db8ce018716999 1

VPS Remote/Hot wallet - installation

1) Download PuTTY to establish a SSH connection to the server.
Go to the PuTTY Download Page and select the appropriate MSI installer for your system.

2) With putty, connect to your VPS using IP Address, and use your credential, provide by OVH

3) Update your VPS with the following command
apt-get update -y
apt-get upgrade -y
4) Install some software needed for running your masternode
apt-get install wget nano python python-virtualenv virtualenv git -y
5) add a new user, we are using the coin name for our user
adduser energi
6) Configure server memory swap
fallocate -l 1500M /mnt/1500MB.swap
dd if=/dev/zero of=/mnt/1500MB.swap bs=1024 count=1572864
mkswap /mnt/1500MB.swap
swapon /mnt/1500MB.swap
chmod 600 /mnt/1500MB.swap
echo '/mnt/1500MB.swap  none  swap  sw 0  0' >> /etc/fstab
7) Configure the firewall for allowing masternode connection
ufw allow ssh/tcp
ufw limit ssh/tcp
ufw allow 9797/tcp
ufw logging on
ufw --force enable

VPS Remote/Hot wallet - configuration

Install the latest version of energi wallet onto your masternode. The latest version can be found here:

1) Now, log in to the VPS with your new user "energi"
su - energi
2) From your home directory, download the latest version from the energi GitHub repository
[ -f /home/energi/sources.tar.gz ] && rm -f /home/energi/sources.tar.gz
wget -q -O /home/energi/sources.tar.gz
[ -d /home/energi/temp_sources ] && rm -fr /home/energi/temp_sources
3) We can now extract the latest version and place the files in your home folder
mkdir /home/energi/temp_sources
cd /home/energi/temp_sources
tar zxf /home/energi/sources.tar.gz --strip-components=1 -C /home/energi/temp_sources
4) launch the compilation with
cd /home/energi/temp_sources

mkdir /home/energi/bin > /dev/null 2>&1
mv /home/energi/temp_sources/src/energid /home/energi/bin
mv /home/energi/temp_sources/src/energi-cli /home/energi/bin
5) Edit the energi.conf by typing
mkdir /home/energi/.energi > /dev/null 2>&1
cd /home/energi/.energi 
nano energi.conf
rpcuser="RPC Username"
rpcpassword="RPC Password"
externalip=IP Address
masternodeprivkey=Masternode Private Key

Press Ctrl + X to close the editor and Y and Enter to save the file.

6) You can create a service for automatic startup of daemon
sudo nano /etc/systemd/system/energi.service
Add the following lines in this file

ExecStart=/home/energi/bin/energid -daemon -datadir=/home/energi/.energi -conf=/home/energi/.energi/energi.conf
ExecStop=/home/energi/bin/energi-cli -datadir=/home/energi/.energi -conf=/home/energi/.energi/energi.conf stop


Press Ctrl + X to close the editor and Y and Enter to save the file.

7) Now, you need to finally start the wallet service with the following command
systemctl enable energi
systemctl start energi
8) You have now waiting for the blockchain synchronization, you can check the status with
/home/energi/bin/energi-cli mnsync status

Start your masternode

1) From the cold wallet debug console (Tools > Debug console)
startmasternode alias false Name of Masternode
The following should appear
“overall” : “Successfully started 1 masternodes, failed to start 0, total 1”,
“detail” : [
		“alias” : “Name of Masternode”,
		“result” : “successful”,
		“error” : “”
2) Back in the Remote Wallet, start the masternode
/home/energi/bin/energi-cli startmasternode local false
A message “masternode successfully started” should appear

3) Use the following command to check status
/home/energi/bin/energi-cli masternode status
You should see something like
	“txhash” : “Collateral Output TXID”,
	“outputidx” : Collateral Output Index,
	“netaddr” : “IP Address:9797,
	“addr” : “Masternode Address”,
	“status” : 4,
	“message” : “Masternode successfully started”
Congratulations! You have successfully created your masternode!
You can now check the status of the node and monitoring it on NRG  Energi (NRG)