HexCash Coin Version 1.0.0 1 / 15
Welcome to the The Hex Ecosystem This guide will help you with setting up your own Masternode The guide is meant to be used with its accompanying Masternode Setup Script Feel free to contact our support if you need further assistance (see page 15 or via discord http://discord.hexcash.org). Requirements: The Requirements to set up a HexCash masternode are: 1) 5000 (five thousand) HCASH will act as the masternode collateral (those coins will not get lost and you can acquire them again by dissolving your masternode). 2) A fully synchronized HexCash Wallet. 3) We strongly recommend using a virtual private server (vps). 1.) VPS Deployment Phase: You can use a VPS provider of your liking; however, we can t cover every possible provider, thus our focus for this guide will be on vultr one of the most popular among all. The steps for other providers will be quite similar. You can check their prices on https://www.vultr.com/pricing/ and a web search for the keywords vultr coupon 2018 will most likely be worth it. You can use the following payment methods at vultr: Credit card, Paypal, BTC and BCH, Alipay, WeChat Pay 2 / 15
After you have topped up your vultr account, you ll be able to deploy a new server instance. We recommend the 1024 MB Cloud Compute (VC2) instance type: 2.) HCASH Wallet Phase: For this phase you need a synchronized HexCash wallet with at least 50000.002 HCASH. The additional 0.002 HCASH will be needed to cover the transaction fee. 2a) Encrypt Wallet We strongly recommend you to encrypt your HexCash wallet. This can be done by clicking on Settings > Encrypt Wallet We recommend a passphrase of at least 20 characters. Do not forget your passphrase or you will not be able to access your coins and they will be lost. 2b) Generate Masternode Key In your wallet click on Tools > Debug console 3 / 15
The following window will open up: In the input field below type in: masternode genkey The output of the operation will be your masternode key and will look similar to this one: Write down your masternode key, you ll need it in a few steps (you can use copy & paste). 4 / 15
2c) Generate Masternode Address In this step we will create a new address for the masternode collateral. The address will be linked to an address alias. This alias can be any combination of characters. We recommend a naming convention of mnxx where xx will be your masternode counter, starting at 01. In the debug console window (step 2b) enter the following: getaccountaddress mn01 The resulting string is your masternode wallet address. Write down your masternode wallet address, you ll need it in the next step (you can use copy & paste). 2d) Masternode Collateral In this step you need to send 5000 HCASH to the address from the previous step. The amount is not lost to you rather than just locked up for as long as you want to run your masternode (thus the term collateral). The label field will change to your address alias when you ve entered the correct address in the Pay To input field as shown in the example below. The Amount field needs to be filled in with 5000. After you click on send you need to enter your passphrase. 5 / 15
If the passphrase was correct a similar window like this will pop up: Make sure the values (amount and address) are correct and confirm with a click on Yes. For the next step the transaction needs to be confirmed: Click on the Transactions tab of your wallet. A confirmed transaction will be indicated by a check mark in the front and will take 6 minutes on average. 3) Masternode Configuration File In the next steps we will populate your masternode.conf file. 3.1) Obtaining txhash and index value First, we need to acquire the transaction hash and the corresponding index of the output block: Open up your console again and send the following command: masternode outputs The result will be a text in json format similar to the following: 6 / 15
3.2) Populating the configuration file In the wallet, under Tools, click on the Open Masternode Configuration File entry: Choose a simple text editor (notepad / TextEdit / gedit) to open the file. In the config file you need to create a new entry of the following syntax: <label> <ip:port> <key> <txhash> <outputidx> Replace each placeholder with your own values. Do not enter the angle brackets ( < and > )! Do enter a space between each value! Explanation label the second value you ve written into the console in step 2c. ip:port the ip of your vps concatenated with :32888 which is the wallet s port (do not forget the colon between ip and port) key the result of step 2b txhash the string of letters and numbers you received with step 3.1 (do not include double quotes) 7 / 15
outputidx the number next to outputidx you received with step 3.1 (this will be either 0 or 1) The entry should have the structure of the following example: 4) VPS Cold Wallet Installation 4.1) Log in On the server dashboard at vultr click the three dots of the instance row, then click on View Console : A terminal will load up and asks you to enter your vps credentials. You can access them by clicking on the three dots again, followed by a click on Server Details : 8 / 15
For the next steps you can keep using the providers own terminal if you insist but we strongly recommend a more adequate tool like Terminus 1 for macos or MobaXterm 2 for Windows. 1 free version - https://itunes.apple.com/us/app/termius-ssh-client/id1176074088 2 free version - https://mobaxterm.mobatek.net/download.html 9 / 15
For the rest of this guide we will be using MobaXterm. Click on Session to create a new session: Configure your session of type SSH: Click on the character button to add your root account. Now click on New and enter the same credentials as above: 10 / 15
Next click on the checkmark to select the root user and click OK: In the sessions tab (on the left) you can log into your vps by double-clicking the entry: 4.2) Download and run the setup script Enter the following command (best to use copy & paste; you can paste into MobaXterm though a right-click on the black terminal area): wget http://www.hexcash.org/hcash.sh && chmod +x hcash.sh &&./hcash.sh You can easily paste in long lines of text though the context menu in MobaXterm: The command should look like this inside the terminal: 11 / 15
By pressing enter now the setup script will be downloaded and executed afterwards: When the script asks you if you want to install a new masternode type the letter y and press enter: The script will ask you to update the operating system (we recommend an update). Updating the operating system may take a few minutes. Please be patient and do not interrupt the update process. When the update was successful the script will download the wallet, extract it and tries to read the vpn ip. If the presented ip address is correct, confirm by entering y: If this is not the correct ip, enter n and type in the correct one afterwards: In the next step the script will ask for your masternode key. Enter the key you obtained in step 2b. 12 / 15
After entering your masternode key the script will start the daemon and synchronize your masternode. Please keep in mind that synchronizing the masternode may take a couple of minutes and will depend on the connection speed of your vpn and the growth of the blockchain. As soon as the masternode is fully synchronized the daemon process will keep running for you and you should see the following prompt: Enter the following to check the status of your new masternode:./hcash/hcash-cli masternode status If the response looks like in the image below where it reads Masternode not found ( ) it is time to start your masternode from within your control wallet. Now go to your local wallet (control wallet) again and click on the Masternodes tab: If your masternode isn t listed in the Masternodes tab restart your wallet first. 13 / 15
Now select the row of your masternode and click on Start alias : You should get the following pop-up: Finally, check the status of your masternode again in the terminal../hcash/hcash-cli masternode status The result should read Masternode successfully started : Congratulations! You re now the proud owner of a HexCash Masternode. 14 / 15
Get in touch with us: / https://twitter.com/hex_cash https://www.facebook.com/hexcashorg/ http://discord.hexcash.org/ https://t.me/hex_cash https://www.youtube.com/user/hexcash 15 / 15