In this Tutorial we will describe you step by step how to setup one/multiple Masternodes with a so called HOT (local) and COLD (virtual) Wallet setup. The big benefit of a setup like this is that you have your Coins stored localy and the Masternode Wallets on your virtual Server are empty Wallets using just a config file. We will also show the possibility how to setup multiple Masternodes on one virtual Server.
Setup your Hot Wallet
CREATE A MASTERNODE ADDRESS
Navigate to File > Receiving addresses.
Create a New Address. Copy this Address by right clicking on it.
SEND 2000 $MONK TO YOUR NEW ADDRESS
Navigate to your SENDING Tab and enter your new Address as Receiver.
Make sure you send exactly 2000 $MONK to your new Address. Wait for at least 6 confirmations before you move to the next step.
PREPARE THE MASTERNODE.CONF
The last step on your HOT Wallet is the preperation of the masternode.conf. Please use the Menu “TOOLS” – “EDIT MASTERNODE.CONF” and open the masternode.conf file.
Leave this File open and go back to your MONKEY Wallet. Now open “TOOLS” – “DEBUG” and navigate to the Console.
Type masternode genkey and masternode outputs
Copy paste this values into your masternode.conf with the following structure:
alias IP:port masternodeprivkey collateral_output_txid collateral_output_index
mn1 127.0.0.2:8710 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0
alias has to be replaced with any name you want to use to identify your Masternode
IP:port has to be replaced with the virtual Server IP you rented at CHECKLIST. You can use every port you like. We use 8001 for our Tutorial.
masternodeprivkey is the result of your masternode genkey
collateral_output_txid is the txhash info your masternode outputs
collateral_output_index is the outputidx of your masternode outputs
The final Result on our Tutorial will look like this:
Once you entered this information you can save the masternode.conf file and your HOT Wallet is prepared.
You can restart your HOT Wallet now and you will see that 2000 $MONK are locked at Coincontrol:
You will also see Masternode at the MASTERNODE Tab of your Wallet now:
Please don’t start it now. We first have to prepare the cold Wallet.
CONNECT TO THE VIRTUAL SERVER
We use Remote Desktop Client which is installed on every Windows machine localy. If you have problems connecting to your virtual Server please check your Serverhoster for a How To.
MODIFY YOUR VIRTUAL SERVER FIREWALL TO ALLOW PORTS
Click on the Start Button of Windows and type “Firewall” – Open “Firewall with Advanced Security”.
Navigate to “Inbound Rules” and define a new Rule.
Then you can continue with NEXT and NEXT and at the last Point “NAME” you can define the Name of the Inbound Rule, feel free to choose any Name you like and click Finish.
Once you clicked on Finish you will now see an Inbound Rule called MASTERNODES. Now double Click on this Rule and a PopUp will appear.
Change the Settings of the “PROTOCOLS AND PORTS” Tab to the following Values:
RESTART FIREWALL TO APPLY CHANGES TO THE PORTS
Now we have to restart our Firewall to enable the Settings. You can also restart the Virtual Server but a Service restart is way faster.
Click again on the Windows Button and type “SERVICES”. Open this Desktop App.
Navigate down to “Windows Firewall”, right click on it and choose “Restart”.
Your Server will turn Black for a Second and come back. You have now prepared your Server to allow the Ports we need to host a Masternode.
MODIFY THE MONKEY.CONF OF MONKEY WALLET
Open the QT Wallet, let it sync to the latest Block and navigate to “TOOLS” and choose “OPEN WALLET CONFIGURATION FILE”.
Please put the following Lines into your Configuration file:
port=PUT PORT HERE
masternodeaddr=PUT IP HERE
masternodeprivkey=PUT YOUR KEY HERE
Depending on the tutorial Setup it has to look like this:
Save the file when you entered your Values and restart your MONKEY Wallet.
START YOUR MASTERNODE ON THE HOT WALLET
Your Cold Wallet Setup is now finished, you can now go to your HOT WALLET on your local machine and open the MASTERNODE Tab.
You can now start your Masternode Alias!
Your Masternode is now started and ready!
VERIFY THAT YOUR MASTERNODE RUNS
If you are not sure if your Masternode is running correct you have one easy way to check if your setup was correct.
Open your COLD WALLET again and open the Console ( “TOOLS” “DEBUG” ). Here you can write masternode status
If you followed all steps, enabled your Firewall Ports correct and inserted the correct Keys you will see “Masternode successfully started”. You are finished now and only have to wait for your Masternode Rewards appearing.
CONNECT TO THE VIRTUAL SERVER
Use Putty on Windows or Termius on Mac (or any other ssh client)
Enter the IP of your Server and press connect.
Enter your login credentials when asked for. Default username is root. Password can be found on VULTR.
When you connected successfully you will see a shell similar to this:
Now you have to download our automatic install script to your ubuntu machine.
First of all you got to use a wget command – just copy paste this in your shell:
wget https://raw.githubusercontent.com/CryptoCatOkiOKi/MonkeyProjectScripts/master/monk.sh -O monk.sh
The script will be fetched within a very short period of time.
Next command is giving the script permissions to be executed:
chmod 777 monk.sh
Script monk.sh contains some usefull tools to install, analize and repair your masternode from a command line menu.
Next step choose 6. INSTALL NEW NODE (type 6, press ENTER).
This step is important depending on if you already installed a Masternode before, or not!
If its your first time you host a Masternode on the Ubuntu Server, please type y – if you installed a Masternode before and only want to add a new one you can choose n.
In the next step the script will ask you how many Masternodes you want to setup. In our Tutorial we will choose 1 but you can put up to 8 on a 5$ Server and up to 15 on a 10$ Server of VULTR.
Then you have to answer if you want to automatically start your masternode wallet if server reboots, if you choose n then you will have to start your wallet manually if vps restart:
In the next Step you can define an unique alias for each Masternode, its recommended to number those.
Now the script will
- Install wallet using bootstrap
- Create CLI script for executing commands in command line (for example getinfo, masternode status so on…)
- Generate masternode priv key
- Set port and RPC date (user, password, port,…)
- Restart wallet
! VERY IMPORTANT !
At the end when you finish to setting your masternode (or more of them) the MAIN MENU will reappear but above you will see data that you have to put in your HOT WALLET masternode.conf
Copy this text into masternode.conf in hot wallet
Replace txhash and outputidx with values from your hot wallet using masterndoe outputs command in console.
OTHER COMMANDS IN SCRIPT
- LIST ALL NODES – show all nodes
- CHECK NODES SYNC – check if wallets are SYNCED
- RESYNC NODE OUT OF SYNC – check wallets and if finds any that is not synced (on wrong chain) will automatically resync it with newest bootstrap.
- RESTART NODE – will execute command to start wallets or just a specific wallet
- STOP NODE – will execute command to stop wallets or just a specific wallet
- INSTALL NEW NODES – will install a new cold wallet or more of them
- CHECK NODE STATUS – will execute command masternode status on wallets
- EXIT – will empty script.