Anon Masternode setup guide
In this guide we will install an ANON masternode through the terminal. Let's get started!
Disclaimer, you will get the best results if you do this in one sitting. Be cautious and always triple check the addresses and private keys you are working with.
- Initial node setup
- Masternode Preperation
- Get a VPS
- Configure your masternode
- Masternode Config file
- VPS Config File
- Final Steps
1. Initial node setup
Download the latest version of ANON.
Navigate to the green button 'clone or download'
Copy the link and follow the instructions detailed in the readme to build for your local system.
Start the node with the command
2. Masternode Preperation
Generate a private key for your masternode with the command
./src/anon-cli masternode genkey- copy the generated and store it in a text document for future use.
Get an account address to receive payouts with the
./src/anon-cli getaccountaddress 0. Copy the address in preperation to send it the collateral funds.
Send EXACTLY 10000 ANON coins to the address you received. Note that this has to be sent in ONE transaction.
Get the transactions output by running the command
./src/anon-cli masternode outputs. You will see the transaction and a number next to it, either
Copy the transaction id and output id Save the output in the text file for future use.
At this point you should have the following informaiton:
- Masternode Private Key
- Your indexed account address
- Transaction received when sending 10000 ANON to above address
- The output id for the transaction
3. Get a VPS
We recommend renting a VPS with www.vultr.com because they are fast and cheap.
Deploy a new server
Choose a location close to you to have a fast connection
Choose Ubuntu 16.04 x64 as operating system and ensure you take a VPS with a minimum of 2 GB memory.
Click "Deploy now"
The server is now being started. Please wait until the status is "Available".
4. Configure your masternode
Depending upon which operating system you are using follow the correct section:
Install PuTTY and run it.
- You will be greeted with the following page:
- Go to Connection and adjust the session timer to 30. This is to ensure that you don't get kicked from the server.
- Go back to Session.
- Fill the Host name field with the IP address you previously copied and click "Open".
- You will see a popup asking you if you trust this host. Choose Yes!( this will only be asked once ).
- Login as "root". Hit ENTER
- Copy the password you saved previously and right click in the putty terminal. ENTER.
- You are now logged into your server:
Mac/Linux - Terminal ( preinstalled )
- You can find Terminal by following the steps:
- Go to Finder, Applications then click on utilities, then you'll find the terminal there.
- Type: ssh root@YourMasternodeIPaddress. ENTER.
- You are now logged into your server.
Let's update our system to the latest version to make sure we are secure.
sudo apt-get updateENTER
- Wait until this finishes
sudo apt-get upgradeENTER
- Type "y" if the system ask for the confirmation of updating the system.
Now you can refer back to the Initial node setup to install the full node.
5. Masternode config file
Navigate to the folder where you stored you
anon.confon your local machine.
Open the masternode.conf file. It should contain the following:
# Masternode config file # Format: alias IP:port masternodeprivkey collateral_output_txid collateral_output_index # Example: MN01 127.0.0.2:51474 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0
Add your own real working node details under it.
Give your masternode an alias.
Put the server IP address ( your vultr ip or other vps/vm ip) followed by the port 33130
Put the private key generated in step 2.1
Put the transaction hash and output id from step 2.5
MN01 124.842.07.0:6250 119cCx5YeA519YkTzun4EptdexAo3RvQXaPdkP 838328ce57cc8b168d932d138001781b77b22470c05cf2235a3284093cb0019db 0
- Once complete, save the file
The file will look like this:
# Masternode config file # Format: alias IP:port masternodeprivkey collateral_output_txid collateral_output_index # Example: mn1 127.0.0.2:51474 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0 MN01 124.842.07.0:6250 119cCx5YeA519YkTzun4EptdexAo3RvQXaPdkP 838328ce57cc8b168d932d138001781b77b22470c05cf2235a3284093cb0019db 0
- Restart the node
6. VPS Config File
On your vps machine, navigate to your
/.anon/folder where your
Open the file and add the following lines:
masternode=1 masternodeprivkey=[genkey 2.1] externalip=this.nodes.ip.address
- Save the file and restart your node.
7. Final Steps
Start your masternode by changing into the anon folder and entering
./src/anon-cli masternode start-all
Verify the masternode is running on the VPS by running
./anon-cli masternode statusENTER
The out put should state "Masternode successfully started"
If you followed these steps correctly your ANON masternode should be running right now!
If the masternode has not started, restart the mnsync by issuing the command: `./src/anon-cli mnsync reset` and check the status of the sync with `./src/anon-cli mnsync status` you should look for the asset id to be 999 or MASTERNODE_SYNC_FINISHED.
After some time the rewards will be distributed in your wallet.
Take a look at our FAQ pages [TODO]
Encrypt your wallet! This prevents other people ( who have access to your computer or get access to your wallet.dat file ) to get in your wallet. Don't lose that password. If you lose it the wallet is locked forever and nobobdy will be able to recover your funds.
Backup your wallet! The beauty of digital files is that you can back them up and store them somewhere safe. After encrypting your wallet make sure you back it up and keep it somewhere safe ( on a usb for example).
For the more advanced user I advise making your VPS more secure from all kinds of attacks. We don't want other people stealing our masternode right? Please look at this guide http://patheyman.com/masternode-secure/ for more info.
If you have a problem or a question you can find us in the #support channel on our Discord.