Masternode Setup Guide - Latest
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://github.com/Solaris-Project/Solaris/releases
1,000 XLR + 1 XLR 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 is good - I recommend to purchase from: https://www.time4vps.eu/?affid=2300
Another VPS provider: http://Vultr.com
An S VPS (from time4vps.eu) server is enough for 1 masternode.
1 Masternode will work on 1 GB RAM, 1 Core CPU, 20 GB HDD.
Download and install Putty from: www.putty.org
Mac users can user Terminal to connect: https://apple.blogoverflow.com/2012/02/how-to-use-ssh-on-mac-os-x/
Desktop Notepad for record keeping
An ability to follow instructions :)
After Purchasing the VPS, you will need to install an Operating System. Select the latest Ubuntu (64-bit) from the list of available operating systems and install it.
Launch Putty, or use the Mac terminal guidelines, and log into the VPS using the IP address that was provided for your purchased VPS. Note your VPS IP address as you will needed in a later step. I will refer to it as VPS_IP.
You may see a certificate warning, since this is the first time you are connecting to this server. You can safely click Yes to trust this server in the future.
You are now connected to the server and should see a terminal window. Begin by logging into your server with the user root and password supplied by the hosting provider.
To paste in the Putty, Right Click the mouse button. The password field will always look empty, which is a safety feature.
You can now minimize the Putty window or just close it and come back to it after we complete the next steps.
Create a MasterNode Address (ALIAS) & send collateral
Open the Solaris wallet, go to File > Receiving Addresses > New
Name the Label and hit OK, (Make it 1 word). The Label is your masternode ALIAS.
While you are still in the Receiving Addresses table, select the address you just created and hit the Copy button. Close this window.
Next you will need to send the collateral (EXACTLY 1000 XLR) to this address. Do so by going to the Send tab and pasting the Address you just copied to the Pay To: field. The Label should automatically show up as the one you just named. Enter exactly 1000 into the amount field and hit Send. This address belong to your account, you essentially send money to yourself. Your funds will stay in your account.
Now go to the Transactions tab and double click on the Transaction you just made. Record the TRANSACTION_ID in Notepad, it will be required in the next step. You also need to wait until 15+ confirmations on this transaction before continuing .
Generate Masternode private key & Index ID
Go to Tools>Debug Console
Type the following command and copy the generated key to Notepad, this will be your PRIVATE_KEY
While in debug console, type in the following and copy the "outputidx" digit this will be your INDEX_ID
Edit masternode.conf file on your local computer
On your local, Qt, wallet click on Tools > Open Masternode Configuration File
This should open a file in notepad, or Mac equivalent, that you can edit.
Add a line containing this information: make sure to include the port after the IP address (:60020)
ALIAS VPS_IP:60020 PRIVATE_KEY TRANSACTION_ID INDEX_ID
Include the line below the # sings.
It should look like this:
Save and close this file.
Open Putty and log back into the VPS.
Copy the next command and paste it into the Putty screen. To paste in the Putty, Right Click the mouse button.
Copy the next command and paste it into the Putty screen.
chmod +x solaris-mn-setup.sh
Next you need to copy the command below, but subsitute the PRIVATE__KEY, with the private key that you generated in the debug console earlier.
sudo bash solaris-mn-setup.sh PRIVATE_KEY
This will run an automated script that will perform most of the steps required on the VPS, like creating required folders and installing the Solaris wallet. If you are asked "Do you want to continue?" at any stage, hit the "y" key on your keyboard and then hit enter.
Next you need to wait for the blockchain to sync up fully with the Solaris network. You can check the progress entering the following commands into the VPS:
In the getinfo command you are interested in the "blocks" number. Enter the command to update the number and track the progress.
To check the current block height of the Solaris blockchain, go to https://solaris.blockexplorer.pro/ .
Once the block height is right around the same as the explorer's, you may minimize Putty and come back to it later to check the status of the masternode once we launch it from the local wallet.
Restart your wallet if you have not done so already. Once the wallet is started you should see a Masternode under the Masternodes tab on the wallet, but it will have MISSING status.
In your local wallet, go to Tools>Debug Console and type:
startmasternode alias false mn1
If you named your alias something else other than mn1, then substitute the mn1 for your alias name.
If you get an Error: "Please enter the wallet passphrase with walletpassphrase first (code -13)" . You need to Unlock your wallet by going to Settings > Unlock Wallet.
After successful start:
Check in your Wallet>Masternodes tab. If the Status is ENABLED, your masternode is running.
You may also open up Putty and type this command to check if the Masternode started
./solaris-cli masternode status
You can now close your local wallet and Putty. The VPS will do all the work for you!