How to setup a Masternode

A better cryptocurrency for everyone

Requirements

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.

The following requirements are needed to set-up a Masternode using this guide.

  • A fully synced local wallet – download from https://snowgem.org/#wallet
  • 10,000 XSG+ 1 XSG for transaction fees (I recommend having the funds in your wallet from the beginning)
  • A Virtual Private Server (VPS). Any VPS should work. Ubuntu 16.04 or 17.10 is good – I recommend to purchase from: https://www.vultr.com/ or https://billing.time4vps.eu/
    An XS VPS (from time4vps.eu) or 5 USD (from vultr) server is enough for 1 masternode.

1 Masternode will work on 512 RAM or more, 1 Core CPU, 20 GB or more HDD.

  • Download and install Putty from: www.putty.org
  • Desktop Notepad for record keeping
  • An ability to follow instructions 🙂

Create a MasterNode Address (ALIAS) & send collateral

Open the Simple wallet, copy collateral address to notepad (do not use z address).

Next you will need to send the collateral (EXACTLY 10000 XSG) to this address. If you have “bad-txns-oversize” error when sending the coin, please following the guide from https://snowgem.org/faq

Wait for 15 confirmations, you can check the transaction on https://insight.snowgem.org/ or https://explorer.snowgem.org/

Go to Masternode tab (On the wallet which you received 10000 XSG) and click on “Get MN Priv Key” button, then copy the private key to notepad

The privakey looks like this: 5JJaWWprqeNLwEYd5JucbUne68m51yumu5Peen5j5hrg4nrjej4

Click on “Get Outputs” button, then copy outputs to notepad

The outputs looks like this: 8b70363be7e585dde357124e67b182da25053d2f45c8454t4t45e4r5edddgdr4 0

Click on “Configure Masternode” button then put your data here – Alias name must not contain white space

Then Click on Configure. A restart message will be appeared and you need to restart your wallet to apply the new configuration.

Excellent, you’ve just done the local setup, your MN will be listed under Masternode tab.

VPS Set-up

Open Putty then put your VPS IP address

Login with VPS credential.

There are 2 ways to do it:

First way: Do it automatically, follow this way: https://github.com/zzzpotato/SnowGem-Masternode-Setup

Second way: Manually:

Run the following commands:

sudo apt-get update

sudo apt-get -y install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python python-zmq zlib1g-dev wget bsdmainutils automake curl unzip nano

mkdir ~/.snowgem

touch ~/.snowgem/snowgem.conf

nano ~/.snowgem/snowgem.conf

Back to local machine, Click on Tools -> Copy snowgem.conf data

Paste it to putty window

Then use combo Ctr + X, then type Y then Enter

Next, run the following commands:

touch ~/.snowgem/masternode.conf

nano ~/.snowgem/masternode.conf

Back to local machine, click on your alias, right click and choose “Copy alias data”

Paste it to putty window

Then use combo Ctr + X, then type Y then Enter

Almost done the configuration, let’s move to the next part.

Run the following command:

wget https://snowgem.org/downloads/snowgemparams.zip -N

unzip -o snowgemparams.zip -d ~/

Setup virtual memory

sudo fallocate -l 4G /swapfile

sudo chmod 600 /swapfile

sudo mkswap /swapfile

sudo swapon /swapfile

Making Swap file permanent (optional): We have our swap file enabled, but when we reboot, the server will not automatically enable the file. We can change that by modifying the fstab file.

sudo nano /etc/fstab

At the bottom of the file, you need to add a line that will tell the operating system to automatically use the file you created:

/swapfile none swap sw 0 

Build the binary (I suggest to build the binary to get the most compatible wallet version with your system)

git clone https://github.com/Snowgem/Snowgem.git snowgem-wallet

cd snowgem-wallet

chmod +x zcutil/build.sh depends/config.guess depends/config.sub autogen.sh share/genbuild.sh src/leveldb/build_detect_platform

./zcutil/build.sh --disable-rust

Take a coffee then waiting for the build, it takes 10-20 mins, depends on your VPS

Run the following command to start the wallet:

./src/snowgemd -daemon

Wait for the sync finish.

Run the following command to check masternode syncing process:

./src/snowgem-cli masternodedebug

If the response is: “Not capable masternode: Hot node, waiting for remote activation.” you can move to next step.

Start MasterNode

In your local wallet, select your Alias then click on Start masternode button


You will get the success message

Then click on Start Alias button:

You will get another success message.

Your masternode is up and runs.

Wait for some minutes, your masternode will be listed.

Go to VPS, run the following command:

./src/snowgem-cli masternodedebug

If the response is: “Masternode successfully started“, you’re finished.

DONE!!!

As an ADDITIONAL service, you can look to setup monitoring for on your Masternode VPS. See our Masternode Monitoring page or start on boot guide for details.

If you want to run multiple MNs from 1 wallet, please follow this guide: Setup Multiple SnowGem Masternodes