Masternode Setup

Setting up a masternode requires a basic understanding of Linux and blockchain technology, as well as an ability to follow instructions closely. It also requires regular maintenance and careful security.

Before you begin

This guide assumes you are setting up a masternode for the first time. You will need:

25,000 WGR

A local wallet to store your Wagerr (e.g. Wagerr Core wallet)

An Ubuntu server, preferably a Virtual Private Server (VPS) with 2GB memory (RAM or RAM+Swap)

The IP address of your Ubuntu server

Port 55002 open to your Ubuntu server

This guide also assumes you will be working from the Wagerr Qt (GUI wallet) on your local computer.

Because this guide assumes you will run a masternode from a second machine, being the Ubuntu server, this guide will refer to your existing Wagerr Qt (GUI wallet) as your local wallet and the Ubuntu machine (VPS) that will host your masternode as your remote wallet.

Follow the steps below in order.

Setting up a masternode

Step 1: Turn off zeromint in your local wallet

Shutdown your wallet Go to your data directory and edit wagerr.conf Add the following line, save and start your wallet again:

enablezeromint=0

zeromintpercentage=0

Step 2: Generate a masternode key on your local wallet

Open the debug console (Tools > Debug console) Type the following command (this will be the masternode genkey, which we’ll use later in the setup):

createmasternodekey

Write the response down somewhere safe.

Step 3: Generate a masternode address on your local wallet

Open the debug console (Tools > Debug console) Type the following command:

getaccountaddress YourMasternodeName (e.g. masternode01)

Write the response down somewhere safe.

Step 4: Send 25,000 WGR to the masternode address from your local wallet

Still in the local wallet, send 25,000 WGR to the masternode address we just generated. Send exactly 25,000 WGR to this new address.

Step 5: Confirm the masternode outputs in your local wallet

Open the debug console (Tools > Debug console) Type the following command (This gets the proof of transaction of sending 25,000):

getmasternodeoutputs

Write the response down somewhere safe.

Step 6: Configure the masternode on your local wallet

Shutdown your wallet Go to your data directory and add the following line to masternode.conf:

<Name of your masternode> <IP address of your remote wallet>:55002 <The privkey from Step 2> <The txhash from Step 5> <The outputidx from Step 5>

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

Example:

masternode01 139.14.135.195:55002 7gb6HNz8gRwVwKZLMGQ6XEaLjzPoxUNK4ui3Pig6mXA6RZ8xhsn 49012766543cac37369cf3813d6216bdddc1b9a8ed03ac690221be10aa5edd6c 1

Step 7: Install Wagerr client on your remote wallet

Install the latest version of the Wagerr wallet onto your Ubuntu VPS by running the following commands:

# Go to your home directory cd ~ #Add a swap partition to your VPS

fallocate -l 2G /swap; chmod 600 /swap; mkswap /swap; swapon /swap; echo -e "/swap none swap defaults 0 0

" >> /etc/fstab

# Download the latest version from the Wagerr GitHub repository (always check for # the latest version) wget https://github.com/wagerr/wagerr/releases/download/v3.1.0/wagerr-3.1.0-x86_64-linux-gnu.tar.gz tar -zxvf wagerr-3.1.0-x86_64-linux-gnu.tar.gz # Go to your Wagerr bin directory cd wagerr-3.1.0/bin # Note: If this is the first time running the wallet in the VPS, you’ll need to to start the wallet ./wagerrd & # Stop the wallet after it initialises ./wagerr-cli stop

Step 8: Configure the masternode on your remote wallet

Edit wagerr.conf in the data dir:

nano ~/.wagerr/wagerr.conf

2. Add the following lines:

rpcuser=YourRandomUsername rpcpassword=YourSuperGreatPasswordNumber_DO_NOT_USE_THIS_OR_YOU_WILL_GET_ROBBED_385593 rpcallowip=127.0.0.1 listen=0 server=1 daemon=1 logtimestamps=1 maxconnections=256 masternode=1 externalip=(The public IP of your remote wallet) bind=(The public IP of your remote wallet) masternodeaddr=(The public IP of your remote wallet):55002 masternodeprivkey=(The masternode genkey from Step 2)

Make sure to replace rpcuser and rpcpassword with your own.

Step 9: Start the masternode

It is important you follow the steps in the exact order.

Start the local wallet Start the remote wallet Type the following command in the local wallet debug console: startmasternode alias false <Name of your masternode> The following should appear: “overall” : “Successfully started 1 masternodes, failed to start 0, total 1”, “detail” : [ { “alias” : “<Name of your masternode>”, “result” : “successful”, “error” : “” } Or if you have multiple masternodes and want to start all at once: startmasternode all 0

Start the masternode on your remote wallet :

./wagerrd &

./wagerr-cli startmasternode local false

A message “masternode successfully started” should appear

5. Use the following command on your remote wallet to check status:

./wagerr-cli getmasternodestatus

You should see something like:

{ “txhash” : “49012766543cac37369cf3813d6216bdddc1b9a8ed03ac690221be10aa5edd6c”, “outputidx” : 1, “netaddr” : “139.14.135.195:55002”, “addr” : “WXDiFihvtMq6v8B4wVu8btnGwEdyAGLnTP”, “status” : 4, “message” : “Masternode successfully started” }

Congratulations! You have successfully created your masternode!

Now the masternode setup is complete, you are safe to remove “enablezeromint=0” from the wagerr.conf file on your local wallet (reverting the change we made in Step 1).

Stop-running-a-masternode

Step 1: Stop the masternode on your remote wallet

./wagerr-cli stop

step-2-remove-the-masternode-configuration-from-your-local-wallet

Shutdown your wallet Go to your data directory and remove the line that was created in Step 6 from your masternode.conf Start your wallet again Your 25,000 WGR will now be unlocked

Troubleshooting

Where is my wallet data located?



You can find your wallet in the following directory:



- Windows: %APPDATA%\Wagerr\

Windows users can copy %APPDATA%\Wagerr into the search pane and press return

- Linux: ~/.wagerr/

- Mac: ~/Library/Application\ Support/wagerr/

-

Wagerr Home: https://wagerr.com

Wagerr Discord: https://discord.gg/tkcXS34

Wagerr Telegram: https://t.me/wagerrcoin

Wagerr Github: https://github.com/wagerr/wagerr/releases

Wagerr Electron GitHub: https://github.com/wagerr/wagerr-electron-app

Wagerr Twitter: https://twitter.com/wagerrx

Wagerr Facebook: https://www.facebook.com/wagerr/

Technical Support: support@wagerr.com