Solaris Support Center

Contact Us

Staking XLR on VPS (Advanced Users Only)

Note: This guide is for advanced users only. This is because the XLR will be located on the VPS wallet and you need to save a backup of your key (or save a backup of the wallet.dat file).

Requirements

- a VPS with minimum specifications:  1 GB RAM, 1 Core CPU, 20 GB HDD.


Step 1: Install Solaris Wallet on VPS using the script


After logging into the VPS, enter the following commands one after another:

wget https://raw.githubusercontent.com/viscolex/ScriptRepository/master/crypto/solaris-staking/solaris-staking0.sh
sudo bash solaris-staking0.sh


This script will first update your Linux software and then upgrade your packages. Press ENTER or default option for any prompt you're shown.

Next, the script will download and install the Solaris wallet. It will also populate the configuration file to contain the necessary parameters.


If successful, you should see the following line as per image:


Step 2: Get new address, save key backup and encrypt wallet


Go into Solaris directory:

cd solaris

Check if daemon is running correctly:

./solaris-cli getinfo

if you see "error: Loading block index...", try again in a minute.

Your status should look something like this (not exactly, just an example!):


Generate a new address:

./solaris-cli getnewaddress


Run the commands below with a SPACE before the command to prevent them from being saved in the bash history.


Encrypt the address with a password and save the encrypted key as a backup:

 ./solaris-cli bip38encrypt <address> <strong password>

Note: Save the encrypted key and password somewhere safe. Do NOT lose either.


Encrypt the wallet:

 ./solaris-cli encryptwallet <strong password>

You may use the same password as for the previous step. The command may take a bit of time to execute so be patient.


Example output (for purpose of guide - DO NOT use for your own setup):


Step 3: Re-launch daemon, send coins to VPS XLR address and unlock wallet


Launch Solaris daemon again:

./solarisd &

Check the status again as follows:

./solaris-cli getinfo


While the wallet syncs, send coins from your local wallet to the VPS XLR address you generated above.


Unlock the wallet:

./solaris-cli walletpassphrase <your password> 0 true

Note: '0' unlocks the wallet until it's closed. You may enter a number instead of '0' which will represent the number of seconds until the wallet automatically locks. Ex. running the command with '9999' will unlock the wallet for 9999 seconds.


Check the staking status:

./solaris-cli getstakingstatus


If all went well, every field should show as "true" as per the image below. 

If not, see "Troubleshooting staking status" at the bottom of this page.


You are now staking, well done!




Troubleshooting staking status:

- "walletunlocked=false" --- make sure you unlocked the wallet

- "mintablecoins=false" or "enoughcoins=false" --- make sure you sent the coins from local wallet to VPS wallet

- "mnsync=false" --- masternodes data syncs last so be patient and wait for this to turn "true"

- "staking status=false" --- if all is "true" except status then your coins do not yet have 102+ confirmations

Note: If staking status is still "false" then restart the wallet and unlock it again.

./solaris-cli stop
./solarisd &