Wiki

Clone wiki

AywaCore / MasternodeSetupGuide

Masternode Setup Guide

Contents

Introduction Configuration of your control wallet VPS remote wallet install Configuration of your Masternode Start your Masternode Teardown your Masternode

Introduction

This guide is for a single masternode, on a Ubuntu 16.04 64bit server (VPS) running headless and will be controlled from the wallet on your local computer (Control wallet). The wallet on the the VPS will be referred to as the Remote wallet. You will need your server details for progressing through this guide.

First the basic requirements:

1. 1,000 AYWA - only before 12/31/2018. Check required AYWA for masternode collateral type following command:

masternode cost

2. A main computer (Your everyday computer) – This will run the control wallet, hold your collateral 1,000 AYWA and can be turned on and off without affecting the masternode.

3. Masternode Server (VPS – The computer that will be on 24/7)

4. A unique IPv4 address for your VPS / Remote wallet

(For security reasons, you’re are going to need a different IP for each masternode you plan to host) The basic reasoning for these requirements is that, you get to keep your AYWA in your local wallet and host your masternode remotely, securely.

##Configuration

BEFORE unlocking your wallet, you must stop Private Mixing in the control wallet option menu.

5. Using the control wallet, enter the debug console (Tools > Debug console) and type the following command:

masternode genkey (This will be the masternode’s privkey. We’ll use this later…). Generate key for every masternode you plan to setup.

6. Using the control wallet still, enter the following command:

getaccountaddress chooseAnyNameForYourMasternode. You can also create receiving address by Wallet GUI.

7. Still in the control wallet, send exact quantity AYWA for masternode collateral to the address you generated in step 2 (Be 100% sure that you entered the address correctly. You can verify this when you paste the address into the “Pay To:” field, the label will autopopulate with the name you chose”, also make sure this is exactly AYWA quantity, as the result of masternode cost (1,000 AYWA before 12.31.2018); No less, no more.)

– Be absolutely 100% sure that this is copied correctly. And then check it again. We cannot help you, if you send masternode collateral AYWA to an incorrect address.

8. Still in the control wallet, enter the command into the console:

masternode outputs (This gets the proof of transaction of sending masternode collateral)

9. Still on the main computer, go into the AYWA data directory, by default in Windows it’ll be

%Appdata%/aywacore or Linux ~/.aywacore or use GUI Wallet menu items Tools->Masternode configuration file.

Open masternode.conf and add the following line to it: <Name of Masternode(Use the name you entered earlier for simplicity)> <Unique IP address>:<port:2777-default> <The result of Step 1: masternode public key> <Result of Step 4: collateral tx hash> <The number after the long line in Step 4: collateral tx number>

Example: MN1 31.14.135.27:2777 892WPpkqbr7sr6Si4fdsfssjjapuFzAXwETCrpPJubnrmU6aKzh c8f4965ea57a68d0e6dd384324dfd28cfbe0c801015b973e7331db8ce018716999 1

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

VPS Remote wallet install

10. Download the latest version of the AYWA wallet onto your masternode. The lastest version can be found here: https://github.com/GetAywa/AywaCore/releases

11. Go to your home directory: cd ~

12. From your home directory, download the latest version from the AYWA repository:

wget https://github.com/GetAywa/AywaCore/releases/download/v0.1.2.0/Aywa-cli_ubuntu.tar.gz The link above is for Ubuntu (or similar), make sure you choose the correct version of the core wallet if you are not using Ubuntu from: https://github.com/GetAywa/AywaCore/releases Unzip and extract:
tar -zxvf aywa_cli_ubuntu_x64.tar.gz Go to your Aywa directory: cd ~/aywa_cli_ubuntu_x64 Note: If this is the first time running the wallet in the VPS, you’ll need to attempt to start the wallet ./aywad

this will place the config files in your ~/.aywacore data directory

press CTRL+C to exit / stop the wallet then continue to step 8.

Configuration Cont

13. Now on the masternodes, find the Aywa data directory here.(Linux: ~/.aywacore)

cd ~/.aywacore

14. Open the aywa.conf by any editor or by typing

vi aywa.conf

then press i to go into insert mode and make the config look like this:

#!bash

rpcuser=long random username
rpcpassword=longer random password
rpcallowip=127.0.0.1
server=1
daemon=1
#logtimestamps=1 #optional
#maxconnections=256 #optional
masternode=1
masternodeaddr=your unique public ip address:2777
masternodeprivkey=Result of Step 1

Make sure to replace rpcuser and rpcpassword with your own.

15. to exit the editor press

esc then :wq!

then press enter

Start your masternode

16. Now, you need to finally start these things in this order

– Start the daemon client in the VPS. First go back to your installed wallet directory, cd ~/aywa_0.1.1.4 and then start the wallet using ./aywad

– From the LOCAL WALLET debug console (or Wallet GUI Governance -> Masternodes) masternode start-alias <mymnalias> (for GUI - Start Masternode)

where <mymnalias> is the name of your masternode alias (without brackets) The following should appear:

#!bash

“overall” : “Successfully started 1 masternodes, failed to start 0, total 1”,
“detail” : [
{
“alias” : “<mymnalias>”,
“result” : “successful”,
“error” : “”
}

– Back in the VPS (remote wallet), start the masternode ./aywa-cli masternode start-alias <mymnalias>

– A message “masternode successfully started” should appear

17. Use the following command to check status:

./aywa-cli masternode status

You should see something like:

#!bash

{
“txhash” : “334545645643534534324238908f36ff4456454dfffff51311”,
“outputidx” : 0,
“netaddr” : “45.11.111.111:51472”,
“addr” : “D6fujc45645645445645R7TiCwexx1LA1”,
“status” : 4,
“message” : “Masternode successfully started”
}

18. Sentinel setup is required to keep your masternode in ENABLED state. Sentinel setup guide is here: https://github.com/GetAywa/Aywa_Masternode/tree/master/sentinel.

Congratulations! You have successfully created your masternode!

Tearing down a Masternode 1) How do I stop running MN1 on my VPS hoster and delete MN1 from my ‘Aywa Core – Wallet’? a) ./aywa-cli stop from the masternode to stop the wallet. b) Then from your controller wallet PC, edit your masternode.conf, delete the MN1 masternode line entry. c) Now restart the controller wallet. d) your masternode collateral amount will now be unlocked. 2) How do I get the masternode collateral amount back that I’ve send to my MN1 address at the beginning of the MN1 setup? You don’t need to “get that back” as it is already in your wallet. Being in the different address is not an issue as that’s also your address. 3) Can I use this masternode collateral amount normally on my wallet then again, and sell it normally like before? Yes!

Updated