Stakenet (XSN) — Masternode Setup Guide

Kuosumi
10 min readAug 26, 2018

Hello and welcome to a Stakenet Tutorial Guide.

In this guide I will explain how to set up your XSN Masternode on a Windows local wallet with a Linux (Ubuntu) VPS. If you prefer a visual guide, you can follow the written instructions in this guide and follow this video:

DISCLAIMER:

1- This guide only works when the XSN wallet is updated to V1.0.28 or later for both local wallet & VPS Wallet. You can obtain the latest wallet version from the below link:
https://github.com/X9Developers/XSN/releases

2- You should never send your coins to your VPS and retain them at all times on your local wallet as sending them to your VPS would defeat the purpose of a hot/cold wallet set up.

Requirements for an XSN Masternode:

First things first, to run your XSN Masternode, you will require the following:

  • An up-to-date version of the XSN Wallet on your computer.
  • 15,000 XSN on an XSN Legacy Wallet Address in your wallet
  • A unique IPv4 Server (VPS)
  • Your VPS must meet the minimum specification requirements.
  • Note: Your VPS must maintain a steady uptime.
  • A unique Masternode Gen Key per Masternode

Where do I get a VPS and what are the minimum system specs for a server?

Choosing your VPS Provider:

You can purchase your server, otherwise known as a VPS through any VPS provider however; I recommend either of the following:

Evolution Host

Evolution host is extremely reliable with a friendly customer support team. They will allow you to pay for your servers in XSN should you choose to use this option. They offer either SDD or HDD VPS options, and I have included their comparison below:

https://evolution-host.com/vps-hosting.php

Vultr:

Vultr is very reliable, easy to use and has a helpful support team should you run into server issues. Your initial deposit will need to be done with a card payment/ PayPal however; after this time, you are able to pay for your servers in bitcoin if this is your desired payment method or you can use the same as your initial payment.

https://www.vultr.com/?ref=7401965

Sign up using the above link and you will receive some free credit to help you run your servers however; you must deposit $10 first.

Upcloud:

Upcloud is reliable and I have never had an issue of a server going offline for maintenance with them which is an important factor when running a Masternode as any server downtime will impact your earnings and will require you to reset your Masternode. Payment options are Paypal or card.

https://www.upcloud.com/register/?promo=P7T8CE

Sign up using the above link and you will receive $25 free credit to help you run your servers however; you must deposit $10 first.

How to deploy your first VPS?

Once you have signed up and deposit your credit in your VPS hosting account, you will now need to deploy your server.

For the below, I will be showing you how to deploy your server on Vultr for many of the instructions as there is no major difference between Vultr & Upcloud when it comes to deploying a server.

Step 1) Deploy a Server by clicking on the Blue Plus Symbol (Vultr).

Step 1.1) Deploy a Server by using the left-hand menu, Servers -> Deploy a Server (Upcloud). Please note with Upcloud, your first step will be to input a server name i.e. Masternode1 and a short server description MN1. With Vultr, this is the last step you do.

Step 2) Choose your server location.

Step 3) Choose your operating system. I recommend Ubuntu 18.04.

Step 4) Choose your server. I recommend using the $10 per month — 1 CPU, 2GB Ram and 40GB SSD.

The current server requirements as for an XSN Masternode as at the time of writing this guide is as follows:

Step 5) Name your server and press deploy.

Step 6) Wait for the installation to complete, on the next screen, click on your server and then click on Manage and take note of the IP Address, username and password:

You have now deployed your first server which you can use for your Masternode.

Important Note: Remember that each Masternode will require a unique IPv4, in other words, one VPS per Masternode.

Setting up your Windows Local Wallet

Step 1) Download and install the latest XSN Wallet from the below link:
https://github.com/X9Developers/XSN/releases

Step 2) Once the wallet has been installed on your computer, go to Tools -> Debug Console, type the below in and press enter to generate a Legacy address:

getnewaddress “alias” legacy

You can rename the address by going File -> Receiving Addresses -> right click on your Legacy address named “Alias” and change name.

Note — A legacy XSN address starts with “X” whereas a Segwit address starts with a “7”

Step 3) Send exactly 15,000 XSN in one transaction to your newly generated Legacy XSN address.

Step 4) You now need to enable Coin Control and the Masternodes Tab. This is done by going to Settings -> Options -> 2nd Mini tab “Wallet” -> Tick the boxes for both of those options and press okay.

Step 5) Type the below command into your debug console to create your Masternode Gen (Private) Key then paste that into Notepad.

masternode genkey

Note — You must generate a Masternode Gen Key for each Masternode you want to set up as you cannot use the same one for more than one Masternode.

Step 6) Type the below command into your debug console to obtain your Masternode Output relating to your Masternode address with the 15,000 XSN Collateral, once done copy and paste the output into Notepad.

masternode outputs

Step 7) Close your wallet and go to your XSNCore Folder in Roaming. The location is as follows:

C:\Users\*Username*\AppData\Roaming\XSNCore

Step 8) Open your Masternode.conf file and input the following:

  • Copy the Masternode Genkey and corresponding collateral output transaction that holds the 15,000 XSN
  • Enter your Masternode details (Replace each on with your values accordingly):
  • {alias/label} {vps_ipaddress}:{port} {masternode_private_key} {collateral_output} {collateral_output_index}

Note: The port number for the XSN wallet is :62583

  • Add a new line for each Masternode you are adding but make sure that each Masternode has a unique Alias, IP (this relates to your VPS), Masternode Genkey, and Collateral Output & Index.
  • Once done, save and close the Masternode.conf.

Step 9) Open your XSN Wallet and let it sync.

Setting up your VPS and Installing the XSN Wallet

I will first show you how to set up and install your VPS; if you know how to do this already then you can ignore and proceed to the next section.

Getting Started — Preparing your VPS

This section will tell you how to install a program to run your VPS server, adding a new super user to your VPS, upgrading & updating your VPS, setting up your firewall and so forth.

It might sound daunting, but it will mainly be copy & paste of lines into your VPS.

Step 1) Download and install Putty from the following link: https://www.putty.org/

Step 2) Click on the “download here” link:

Step 3) On the next page, download the correct build for your PC.

Step 4) Install and open putty. Once open, input your VPS IP and add a name, then press save on the right-hand side, followed by open:

Step 5) Once the connection to the server opens, input the username “root” and the password given to you by your server.

Tip: You cannot paste using Ctrl + V, instead you right click to paste into the console.

Step 6) Once logged in, you will now need to change the password to your “root” login. Input the following command and then type in a new password:

passwd root

Step 7) Next you want to add a new user which you will use to login — Change “username” to the desired name but only use lowercase:

adduser username

Step 8) Confirm your password for the new user and press enter through to the “Is the information Correct?” If it is correct, input “y” and press enter.

Step 9) Next you want to make your new user a super user. Input the following command and replace username with the one you created in the previous steps:

usermod -aG sudo username

Step 10) Update your server using the following command:

apt update -y

Step 11 Once the updates have finished downloading, you will need to apply the upgrades using the following command:

apt upgrade -y

Step 12) The next step is to apply your firewall and allow access to port 62583 as this is required to use the XSN Wallet. You will need to copy and paste each line separately.

apt install ufw python virtualenv git unzip pvufw allow ssh/tcpufw limit ssh/tcpufw allow 62583/tcpufw logging onufw enable

Note: After some of the commands, it will require you to input “y” and enter, to proceed so please look out for this.

Step 13) As with above, copy and paste each line separately.

fallocate -l 5G /swapfilechmod 600 /swapfilemkswap /swapfileswapon /swapfilenano /etc/fstab

Step 14) The nano command will move to a different screen. Once that is open, use your arrow keys to navigate to the bottom and paste the below line.

/swapfile none swap sw 0 0

Note: You must make sure that the above spaces between each word & number is separated by using tab on your keyboard, which is indicated by the red lines in the image below:

Once inputted, go Ctrl + X, followed by “Y”, and then Enter.

Step 15) Once you have edited and saved the document, copy and paste the below line to reboot your server and apply the changes:

reboot now

You are now ready to install the latest XSN wallet.

Getting Started — Installing your XSN Wallet on your VPS

This section will tell you how to install the XSN Wallet on your VPS and input your Masternode Configuration file.

Step 1) Download and install the wallet and the latest bootstrap using the following commands. Please copy and paste each line separately.

mkdir ~/.xsncore/wget https://github.com/X9Developers/XSN/releases/download/v1.0.28/xsn-1.0.28-x86_64-linux-gnu.tar.gztar xfvz xsn-1.0.28-x86_64-linux-gnu.tar.gzcp xsn-1.0.28/bin/xsnd ~/.xsncore/cp xsn-1.0.28/bin/xsn-cli ~/.xsncore/wget https://github.com/X9Developers/XSN/releases/download/v1.0.26/bootstrap.zipunzip bootstrap.zip -d ~/.xsncorels -l ~/.xsncore

Step 2) You will now need to prepare the information you are going to input in the xsn.conf file for your Masternode setting. Copy and paste the below information into a Notepad file and update it the information in red.

# — —
rpcuser=RANDOM LONG USERNAME
rpcpassword=RANDOM LONG PASSWORD
rpcallowip=127.0.0.1
# — —
listen=1
server=1
daemon=1
maxconnections=264
# — —
masternode=1
masternodeprivkey=MN Gen Key from previous section
externalip=VPS IP:62583
# — —

An example of what the completed file should look like is below:

Step 3) Input the following command and paste in the information you just inputted into Notepad

nano ~/.xsncore/xsn.conf

Once inputted, go Ctrl + X, “Y” and Enter.

Step 4) Start your VPS Wallet with the following:

~/.xsncore/xsnd

Step 5) Give your wallet on your server a few minutes to start sync’ing to the blockchain. You can monitor the progress with the following command:

~/.xsncore/xsn-cli getblockchaininfo

Once the numbers in Blocks = Headers, then your VPS is fully sync’d.

Starting your Masternode

Only proceed with the following once both your Local & VPS wallet are fully sync’d to the chain.

Step 1) On your Local wallet, go to “My Masternodes” tab, and click on your Masternode you want to start, and press “Start Missing”.

Step 2) Once you have done the above, go to your VPS and input the following command:

~/.xsncore/xsn-cli masternode status

This should say “Masternode successfully started” in its status field now.

If it does not say that and instead says “not capable”, you should check your config again and make sure your 15,000 XSN is on a Legacy address and not a Segwit address.

Congratulations, you have set up your first XSN Masternode.

Join the Stakenet discord — https://discord.gg/MJc2x6f and let us know if you have any questions.

If you found this guide or tutorial video helpful and would like to show your appreciation, please send a donation:

XSN Address:
XxpKAqBGoNjeNGpcA2LigB7zmZt4zye6Vc

ETH Address:
0x6fd91D6eC9101f649ac55070A54008F20f373FD7

BTC address:
1LL3QThpswGhBmNQJrYbLJztKMEDN6FziA

--

--