Linux Server Masternode Setup

(Last Updated 8/1/2017)

Head over to the support hub for the most up to date guides.

This guide is for a single masternode, on a Ubuntu 16.04 64bit server(1GB RAM 25GB SDD) hosted by and will be controlled from the wallet on your local computer.

After you’ve got your server details, you need to go through some initial setup before you do anything masternode related. I would recommend you follow these instructions.

First the basic requirements:
-10,000 PIV
-A main computer(Your everyday computer browsin’, game playing’ computer)
-Masternode Server(The computer that will be on 24/7)
-A unique IP address for EACH masternode
(For security reasons, you’re gonna need a different IP for each masternode you plan to host)

The basic reasoning for these requirements is that, you get to keep your PIV in your local wallet,
and host your masternode remotely, securely.

For this guide, I’m going to refer to your main computer’s wallet as the main wallet, and the masternode wallet as the masternode wallets.
I will also be simulating the install using a Ubuntu server using the command line. If your using pivxd, all commands should be proceeded by ./pivx-cli .

1) Using the main wallet, enter the debug console and type the following command:
masternode genkey (This will be the masternode’s privkey. We’ll use this later…)

2) Using the main wallet still, enter the following command:
getaccountaddress masternodename

3) Still in the main wallet, send 10,000 PIV to the addresse. (Make sure this is 100% only 10,000; No less, no more.)

4) Still in the main wallet, enter the command into the console:
masternode outputs (This gets the proof of transaction of sending 10,000)

5) Still on the main computer, go into the PIVX data directory, by default in Windows it’ll be %Appdata%/PIVX or ~

Find masternode.conf and add the following line to it:

 <Name of Masternode(Use the name you entered earlier for simplicity)> <Unique IP address>:51472 <The result of Step 1> <Result of Step 4> <The number after the long line in Step 4>

Example: MN1 892WPpkqbr7sr6Si4fdsfssjjapuFzAXwETCrpPJubnrmU6aKzh c8f4965ea57a68d0e6dd384324dfd28cfbe0c801015b973e7331db8ce018716999 1

Substitute it with your own values and without the “<>”s

6) Still on the main computer, open the pivx.conf file (Find it or use the edit the config file in the PIVX-qt client under “Tools”). Make it look like this:

 rpcuser=long random username
 rpcpassword=longer random password
 Save it, close and restart the wallet.

7) Now on the masternods, find the PIVX data directory here.(Linux: ~/.pivx). Open the pivx.conf file and make it look like this:

 rpcuser=long random username
 rpcpassword=longer random password
 externalip=your unique public ip address
 bind=your unique public ip address
 masternodeaddr=your unique public ip address
 masternodeprivkey=Result of Step 1

Make sure to replace rpcuser and rpcpassword with your own.

8) Close and restart this masternode wallet.

10) Now, you need to finally start these things

masternode start-alias alias (Make sure wallet is unlocked)

If you did it right, you should see something like this:

                       "overall" : "Successfully started 1 masternode, failed to start 0, total 1",
                       "detail" : {
                          "status" : {
                             "alias" : "mn1",
                             "result" : "successful"

11)Use the following command to check status:

masternode status

You should see something like:
“vin” : “CTxIn(COutPoint(masternode output, index
), scriptSig=)”,
“service” : “ip:51472”,
“pubkey” : “masternode address”,
“status” : “Masternode successfully started”

Congratulations! You have successfully created your masternode! You can confirm the node running correctly by making sure the time updates in the controller wallet.

© 2017 PIVX Masternode