NYX Masternode Setup Guide for Hot wallet Linux

Single masternode on Linux VPS (Ubuntu 16.04 x64)



  1. 1. A remote server (Virtual Private Server, VPS) which will be our masternode wallet.
  2. PuTTY, which will be used to setup the server (install the dependencies, the wallet itself, and configure everything) after the initial configuration.
  3. 1001 or more NYX as collateral (1000 NYX + 1 NYX to cover the transaction fees)

To do:

  1. Deploy VPS server
  2. VPS configuration
  3. Install Sentinel
  4. Start masternode

2. Deploy VPS server

a) Register: https://www.vultr.com/ and add some funds. At least 10$ or more

b) Press “Servers”

c) Press “+”

Server location: Frankfurt(or any)

Server type: Ubuntu 16.04 x64

Server Size: 25 GB SSD 5$/mo 1cpu 1024mb 1000gb (will be more than enough)

Project Image

Enable IPv6, Auto Backups and Private networking not needed

Enable DDOS Protection or not is your decision (if DDOS attack occur your server will continue work while others are down. It is mean you will get more profit because other masternodes are down)

Startup Script don’t touch

SSH Keys don’t touch

Server hostname & label: Give name to your server (ex: NYXMN1)

Project Image

d) Press Project Image
Once install done you’ll get confirmation email. It’ll take up to 5 mins.

e) Press your server name

Project Image

You’ll see your IP, username and password

Project Image
*to see your password press “EYE” icon

3. VPS configuration

a) Download PUTTY for your windows system https://www.putty.org

b) Copy your VPS IP and open PUTTY

c) Paste IP to PUTTY “Host name” and press OPEN and answer “Yes”

Project Image

Login as: root

Password: (copy from vultr server screen in browser)

* It is absolutely normal that password is invisible. Cursor will not move.
* For paste your password just click right mouse button, you will not see anything - it’s normal, press ENTER.
* Always use right button click for paste text in PUTTY from WINDOWS

Project Image

d) Upgrade OS by running the following commands(copy-paste one by one and confirm by ENTER button):
apt-get update
apt-get upgrade
(Press Y and ENTER when prompted)
apt-get dist-upgrade
(Press Y and ENTER when prompted)
apt-get install software-properties-common nano libboost-all-dev libzmq3-dev libminiupnpc-dev libssl-dev libevent-dev
(Press Y and ENTER when prompted)
add-apt-repository ppa:bitcoin/bitcoin
(Press ENTER when prompted)
apt-get update
apt-get install libdb4.8-dev libdb4.8++-dev
(Press Y and ENTER when prompted)
mkdir nyx && cd nyx

e) Download the latest wallet version:

wget http://latest.nyxcoin.org/nyx-2.0.0-linux64.tar.gz

* If main link doesn’t work, try to copy link from github.
* Backup link for “nyx-2.0.0-linux64.tar.gz” file you can copy from: https://github.com/nyxpay/nyx/releases

f) Extract all files from the wallet tar.gz file using the tar command, delete archive and go to nyx folder:

tar -xvf nyx-2.0.0-linux64.tar.gz && rm nyx-2.0.0-linux64.tar.gz && cd nyx-2.0.0

* Name “nyx-2.0.0-linux64.tar.gz” could be different. It depend on current version. Check file name on github repository first and make necessary correction in command if needed.

g) Make it possible to launch NYX core from any directory and start NYX wallet:

chmod +x nyx*
mv nyx-cli nyx-qt nyx-tx nyxd /usr/local/bin
cd ..
rm -r -f nyx-2.0.0
nyxd -daemon

h) Make sure your wallet is syncing with the NYX network:

nyx-cli getinfo
nyx-cli mnsync status

"IsBlockchainSynced": true ,
"IsMasternodeListSynced": true ,
"IsWinnersListSynced": true ,
"IsSynced": true ,

* That is mean your node is synced

Project Image

i) Get NYX masternode address. This is address where you should send exactly 1000 NYX. nyx-cli getaccountaddress masternode

j) Send 1000 coins to the generated address and wait 15 confirmations (30mins approximately).

k) Generate the private key for the masternode and copy it to notepad.
nyx-cli masternode genkey

Project Image

l) Stop wallet and edit nyx.conf file: cd /root/.nyx
nyx-cli stop
nano nyx.conf

m) nyx.conf file will be opened automatically in Linux text editor. You should change RPCUSER(any), RPCPASSWORD(any), EXTENALIP(your VPS ip address) and MASTERNODEPRIVKEY(we got it on step#2-k). Copy whole blue text to notepad, change only red text with your data and paste it in putty:


Project Image

n) Save changes in nyx.conf file and exit by pressing CTRL+O -> ENTER -> CTRL+X

o) Start nyxd again and wait for full sync.

p) Get masternode collateral_output_txid and collateral_output_index and save it to notepad without quotes and brakets:
nyx-cli masternode outputs

Project Image

q) Edit masternode.conf file:
nano masternode.conf

r) To the bottom of text you should paste your data(divided by spaces):
Masternodename - any you want
IP:port – Your VPS ip address and port 4330(port is fixed for all)
masternodeprivkey – You got it from step #2-k
collateral_output_txid – first part of masternode outputs
collateral_output_index – second part of masternode outputs (usually 1 or 0)

Project Image

s) Save changes in mastenode.conf file and exit by pressing CTRL+O -> ENTER -> CTRL+X

t) Stop and start nyx server by:
nyx-cli stop

It should say “Nyx Core server starting”

u) Make sure your wallet is syncing with the NYX network:

nyx-cli mnsync status

"IsBlockchainSynced": true ,
"IsMasternodeListSynced": true ,
"IsWinnersListSynced": true ,
"IsSynced": true ,

* That is mean your node is synced

Project Image

3. Install Sentinel

a) Make sure Python version 2.7.x or above is installed:
python --version
cd /root/nyx

b) Installation:
apt-get update
apt-get -y install python-virtualenv
git clone https://github.com/nyxpay/sentinel.git && cd sentinel
apt install virtualenv
(Press Y and ENTER when prompted)
virtualenv ./venv
./venv/bin/pip install -r requirements.txt

c) Set up a crontab entry to call Sentinel every minute:
crontab -e
(Press 2 and ENTER when prompted)

d) COPY blue text and paste it in PUTTY:
* * * * * cd /root/nyx/sentinel && ./venv/bin/python bin/sentinel.py >/dev/null 2>&1
(And press ENTER to move string to next line)

e) Use CTRL+O -> ENTER -> CTRL+X (for saving changes and exit to command line).

Project Image

f) Configuration sentinel.conf:
nano sentinel.conf

g) Copy blue text and paste in PUTTY:
(And press ENTER to move string to next line)

h) Use CTRL+O -> ENTER -> CTRL+X (for saving changes and exit to command line).

Project Image

i) Test Sentinel:
cd /root/nyx/sentinel
SENTINEL_DEBUG=1 ./venv/bin/python bin/sentinel.py

Project Image

* This is mean your sentinel is working fine
* Run command after masternode start only. It will not show sentinel status now.

4. Start masternode

a) Type in PUTTY:
nyx-cli masternode start

b) To check masternode status:
nyx-cli masternode status

c) Your status will become “PRE_ENABLED” and after 30-60min it will be changed to “ENABLED”

d) Sometimes you should wait for 1-2 hours for your masternode sync with another nodes and become ready for starting, if it not start immediately don’t worry, just try a little bit later.

e) Relaunch your node if your masternode status is “NEW_START_REQUIRED”

f) Don’t worry if status is “WATCHDOG_EXPIRED”. It will go back to “ENABLED” in 30-60 minutes.

g) If you would like to check on your wallet's balance and see if you have earned any rewards, enter this command. Any rewards earned from your masternode will appear in the immature_balance until they have reached 100 confirmations, and then they will move to your spendable balance.
nyx-cli getwalletinfo

h) If you want to send money to another wallet address (exchange or somewhere) use command:
nyx-cli sendtoaddress [address] [quantity]

* Replace [address] with destination address and replace [quantity] with amount of coins to send.
Example: nyx-cli sendtoaddress NfEnneYbL12YyrLku2wTkww51APtJSn6WK 250

Subscribe to NYX for Masternode updates and news on roadmap progress