L o a d i n g
ZENYX

MASTERNODE GUIDE

STEP 1

Open your Windows wallet.
Go to Tools -> Debug console.

STEP 2

Type the following RPC command, to create an address for the masternode fee:
getnewaddress

Example output

ZGB2cH7gaPkcXKLbnzYNJuqWUsaakkHoSE

Send 1 to yourself for masternode fee
sendtoaddress "ZGB2cH7gaPkcXKLbnzYNJuqWUsaakkHoSE" 1

Wait until the transaction is confirmed by 4 blocks.

STEP 3

Type the following RPC command, to create an address for the masternode collateral:

getnewaddress

Example output

ZMNE3zvgJgaTnSRJs6uKzuXt8hsns2ryw4

Send 170,000 to yourself for masternode collateral.

sendtoaddress "ZMNE3zvgJgaTnSRJs6uKzuXt8hsns2ryw4" 170000

Example output

f01f9864a682df1d3058bfaeb8212f78166c491caa7880ce88b1fcf9cc2b9cfe

Wait until the transaction is confirmed by 5 blocks.


STEP 4

Generate a BLS key pair with the the following RPC command:
bls generate
Example output

{
 "secret": "44785g51a4034bd2s8504f82u5877c17b466f07ee95228048b40b6a46y6520ac4",
 "public": "1743568u54096a09b6ea0632d10346073ffd92385b6900004d271ht5693ca66a84fa9b87d7893f689c300297a7f115893"
}

STEP 5

Type the following RPC command, to create an address for the owner of the masternode:
getnewaddress
Example output

Z75y93pFdzJKLJFC4X6tBk44dwG81XaV71

Type the following RPC command, to create an address for used for proposal voting:
getnewaddress
Example output

ZlaEBKchiweV8wDcYXgYJz9Gaj89cbC9

Type the following RPC command, to create an address to receive the masternode reward:
getnewaddress
Example output

ZQP90sbCU6ZAGJPvZjsRp5oMLSJ5UM6vbB

STEP 6

Prepare the ProRegTx transaction by modifying the following line.


protx register_prepare f01f9864a682df1d3058bfaeb8212f78166c491caa7880ce88b1fcf9cc2b9cfe 1 120.32.45.65:14083 Z75y93pFdzJKLJFC4X6tBk44dwG81XaV71 1743568u54096a09b6ea0632d10346073ffd92385b6900004d271ht5693ca66a84fa9b87d7893f689c300297a7f115893 ZlaEBKchiweV8wDcYXgYJz9Gaj89cbC9 0 ZQP90sbCU6ZAGJPvZjsRp5oMLSJ5UM6vbB ZGB2cH7gaPkcXKLbnzYNJuqWUsaakkHoSE


f01f9864a682df1d3058bfaeb8212f78166c491caa7880ce88b1fcf9cc2b9cfe - Transaction id from the RPC command.
1 - Single digit from the RPC command
120.32.45.65:14083 - External IPv4 address of your VPS.
Z75y93pFdzJKLJFC4X6tBk44dwG81XaV71 - Address of the owner of the masternode.
1743568u54096a09b6ea0632d10346073ffd92385b6900004d271ht5693ca66a84fa9b87d7893f689c300297a7f115893 - “public” value from the RPC command “bls generate”.
ZlaEBKchiweV8wDcYXgYJz9Gaj89cbC9 - Address used for proposal voting.
ZQP90sbCU6ZAGJPvZjsRp5oMLSJ5UM6vbB - Address to receive the masternode reward.
ZGB2cH7gaPkcXKLbnzYNJuqWUsaakkHoSE - Address to where you send the masternode amount fee.


Paste the modified line into your console.
Example output

{
  "tx": "0300010001fa465b0d9d319a0f6ff38fc903ecd803bafd899174131bc1edc7d866ce0a46d80100000000feffffff011763cd1d000000001976a9141768978c8ce31902d8845b5c185db0972741818088ac00000000d1010000000000fe9c2bccf9fcb188ce8078aa1c496c16782f21b8aebf58301ddf82a664981ff00100000000000000000000000000ffff78202d413703965472883ee5be47be1208fbd6aaf6444e5b1743f154096a09b6ea0632d1031b073ffd92385b6900004d2716184c93ca66a84fa9b87d7893f689c300297a7f115893d645f4912e1c1f5b1863c5e02cc6afda4fadfa6e00001976a914878a033e118186c213c30c26e0ab76ed841a01a188acdf6c8935e4d656b99c9456472d02b49cc7515ac5b89512a811fbd884cbdd4140d00",
  "collateralAddress": "ZMNE3zvgJgaTnSRJs6uKzuXt8hsns2ryw4",
  "signMessage": "ZQP90sbCU6ZAGJPvZjsRp5oMLSJ5UM6vbB|0|Z75y93pFdzJKLJFC4X6tBk44dwG81XaV71|ZlaEBKchiweV8wDcYXgYJz9Gaj89cbC9|21ggjfc3eda3eb6321011435yf4333ea94bedc327d17fff8640fabbddee284d1"
}

STEP 7

Sign the ProRegTx transaction by modifying the following line.

signmessage "ZMNE3zvgJgaTnSRJs6uKzuXt8hsns2ryw4" "ZQP90sbCU6ZAGJPvZjsRp5oMLSJ5UM6vbB|0|Z75y93pFdzJKLJFC4X6tBk44dwG81XaV71|ZlaEBKchiweV8wDcYXgYJz9Gaj89cbC9|21ggjfc3eda3eb6321011435yf4333ea94bedc327d17fff8640fabbddee284d1"


ZMNE3zvgJgaTnSRJs6uKzuXt8hsns2ryw4 - “collateralAddress” value from the RPC command “protx register_prepare”.
ZQP90sbCU6ZAGJPvZjsRp5oMLSJ5UM6vbB|0|Z75y93pFdzJKLJFC4X6tBk44dwG81XaV71|ZlaEBKchiweV8wDcYXgYJz9Gaj89cbC9|21ggjfc3eda3eb6321011435yf4333ea94bedc327d17fff8640fabbddee284d1 - “signMessage” value from the RPC command “protx register_prepare”.

Paste the modified line into the console of your wallet.

Example output

H3PnZqFVi60Gg68xcK2sw2jyL79mx2J3c0EWnSRlNSDclFF/gyLL89HAFnaHJI80+LHGuvuF99FP7ny3K8=


STEP 8

submit the ProRegTx transaction by modifying the following line.
protx register_submit 0300010001fa465b0d9d319a0f6ff38fc903ecd803bafd899174131bc1edc7d866ce0a46d80100000000feffffff011763cd1d000000001976a9141768978c8ce31902d8845b5c185db0972741818088ac00000000d1010000000000fe9c2bccf9fcb188ce8078aa1c496c16782f21b8aebf58301ddf82a664981ff00100000000000000000000000000ffff78202d413703965472883ee5be47be1208fbd6aaf6444e5b1743f154096a09b6ea0632d1031b073ffd92385b6900004d2716184c93ca66a84fa9b87d7893f689c300297a7f115893d645f4912e1c1f5b1863c5e02cc6afda4fadfa6e00001976a914878a033e118186c213c30c26e0ab76ed841a01a188acdf6c8935e4d656b99c9456472d02b49cc7515ac5b89512a811fbd884cbdd4140d00 H3PnZqFVi60Gg68xcK2sw2jyL79mx2J3c0EWnSRlNSDclFF/gyLL89HAFnaHJI80+LHGuvuF99FP7ny3K8=


0300010001fa465b0d9d319a0f6ff38fc903ecd803bafd899174131bc1edc7d866ce0a46d80100000000feffffff011763cd1d000000001976a9141768978c8ce31902d8845b5c185db0972741818088ac00000000d1010000000000fe9c2bccf9fcb188ce8078aa1c496c16782f21b8aebf58301ddf82a664981ff00100000000000000000000000000ffff78202d413703965472883ee5be47be1208fbd6aaf6444e5b1743f154096a09b6ea0632d1031b073ffd92385b6900004d2716184c93ca66a84fa9b87d7893f689c300297a7f115893d645f4912e1c1f5b1863c5e02cc6afda4fadfa6e00001976a914878a033e118186c213c30c26e0ab76ed841a01a188acdf6c8935e4d656b99c9456472d02b49cc7515ac5b89512a811fbd884cbdd4140d00 - “tx” value from the RPC command “protx register_prepare”.

H3PnZqFVi60Gg68xcK2sw2jyL79mx2J3c0EWnSRlNSDclFF/gyLL89HAFnaHJI80+LHGuvuF99FP7ny3K8= - Output from the RPC command “signmessage”.

Paste the modified line into the console of your wallet.

Example output

077872b7ef2a7456c784eb138bd363678782beae973bbed921f1f64368

 

Setup VPS 

 

1. Update the server

sudo apt update && sudo apt upgrade -y

2. Add 2GB of SWAP First check to make sure there is not already swap active:

free -h

If the return is 0, you should create and activate the SWAP. Swap: 0B 0B 0B Create SWAP and Activate (only if required):

sudo dd if=/dev/zero of=/swapfile bs=1k count=2048k sudo chmod 600 /swapfile

sudo mkswap /swapfile sudo swapon /swapfile

sudo echo "/swapfile swap swap auto 0 0" | tee -a /etc/fstab sudo sysctl -w vm.swappiness=10

sudo echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf


The return of the echo should be: swappiness = 10 


3. Enable firewall & open ports First check to make sure there is not already swap active:

apt install ufw -y
ufw default deny incoming 
ufw default allow outgoing 
ufw allow ssh
ufw allow 14083/tcp 
ufw enable


4. Install Fail2Ban

sudo apt install fail2ban -y

sudo nano /etc/fail2ban/jail.local


Copy and paste the following config into the file:

[sshd]
enabled = true 
port = 22 
filter = sshd
logpath = /var/log/auth.log 
maxretry = 3

Restart fail2ban:

sudo systemctl restart fail2ban

Reboot the server:

sudo reboot


5. Download latest daemon & Configurations

mkadir zenyx-latest
cd  zenyx-latest
wget https://github.com/zenyxqord/zenyx/releases/download/v0.01.1.6/linux.tar.gz 
tar -xvf linux.tar.gz 
chmod +x *

 

zenyx core folder

mkdir ~/.zenyxcore && touch ~/.zenyxcore/zenyx.conf

nano ~/.zenyxcore/zenyx.conf

Copy and paste the following config into the file: 

rpcuser=CHOOSEYOURUSERNAME (Choose custom & safe username)
rpcpassword=CHOOSEYOURPASSWORD (Choose custom & safe password)
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
maxconnections=125
masternode=1
masternodeblsprivkey=44785g51a4034bd2s8504f82u5877c17b466f07ee95228048b40b6a46y6520ac4
externalip=120.32.45.65

Save the file with the keyboard shortcut ctrl + x.

 

120.32.45.65 - External IPv4 address of your VPS.
44785g51a4034bd2s8504f82u5877c17b466f07ee95228048b40b6a46y6520ac4 - “secret” value from the RPC command “bls generate”.

Type the following command to start your masternode:
./zenyxd -daemon