💻Lite Masternode

Masternode on Ubunutu Server 22.04 tutorial

VPS REQUIREMENTS

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

BHu7BFFtfsU3FgfUX1y5JnAQNVZ28348UK

STEP 3

Go back to your wallet overview.

Press on the toolbar button "Send".

Enter the address from the RPC command “getnewaddress” behind the text "Pay To:". (Example: BHu7BFFtfsU3FgfUX1y5JnAQNVZ28348UK)

Enter the following amount of coins behind the text "Amount:": 5

Press on the button "Send".

Wait until the transaction is confirmed by 4 blocks.

STEP 4

Go back to the console of your wallet.

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

getnewaddress

Example output

BRrfbPvmgds7XFvU4xhsCVegDM4Do6EyYp

STEP 5

Go back to your wallet overview.

Press on the toolbar button "Send".

Enter the address from the RPC command “getnewaddress” behind the text "Pay To:". (Example: BRrfbPvmgds7XFvU4xhsCVegDM4Do6EyYp) Lite Masternode: Enter the following amount of coins behind the text "Amount:": 10,000

Press on the button "Send".

Wait until the transaction is confirmed by 4 blocks.

STEP 6

Go back to the console of your wallet.

Identify the transaction with the following RPC command:

masternode outputs

Example output

{ "618599438df959fc0647ad1895808ba0fef96282bf24eb177134cb0c329c8d41": "1" }

STEP 7

Generate a BLS key pair with the the following RPC command:

bls generate

Example output

{ "secret": "5120af1f913b8a4b459e19cc3ef3f865ba891404853fa317f348635b347e12ef", "public": "050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c91" }

STEP 8

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

getnewaddress

Example output

B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod

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

getnewaddress

Example output

B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS

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

getnewaddress

Example output

BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL

STEP 9

Prepare the ProRegTx transaction by modifying the following line. Lite Masternode protx register_prepare_lite 618599438df959fc0647ad1895808ba0fef96282bf24eb177134cb0c329c8d41 1 159.89.31.63:12972 B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod 050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c91 B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS 0 BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL BHu7BFFtfsU3FgfUX1y5JnAQNVZ28348UK

618599438df959fc0647ad1895808ba0fef96282bf24eb177134cb0c329c8d41 - Transaction id from the RPC command “masternode outputs”.

1 - Single digit from the RPC command “masternode outputs”.

159.89.31.63:12972 - External IPv4 address of your VPS.

B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod - Address of the owner of the masternode.

050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c91 - “public” value from the RPC command “bls generate”.

B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS - Address used for proposal voting.

BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL - Address to receive the masternode reward.

BHu7BFFtfsU3FgfUX1y5JnAQNVZ28348UK - Address to where you send the masternode amount fee.

Paste the modified line into your console.

Example output

{ "tx": "0300010001ac7584669c70526e0e338d6a2477dc648788140dd0dcbc5915878f9c632d129b0100000000feffffff01e551cd1d000000001976a9149385c0ceafd77df3619e604f4ce7d0317bbcbfae88ac00000000d1010000000000418d9c320ccb347117eb24bf8262f9fea08b809518ad4706fc59f98d439985610100000000000000000000000000ffff9f591f3f32ac1730a9104ead8b642345c1300e81c4d78e874de6050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c910929cbddb56d0fbd2993de634c3ed42de5a8455700001976a914b4b5864ed646cd8591a8ed996fa6c25de0b98bce88ac8f420b431efe6e62a55533099d2e99759767d38f94461325508afe3feadd0a9f00", "collateralAddress": "BRrfbPvmgds7XFvU4xhsCVegDM4Do6EyYp", "signMessage": "BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL|0|B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod|B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS|c8ebf2ae235d658e0809915348718dbb262f6884473c00448ba93e7ce4648070" }

STEP 10

Sign the ProRegTx transaction by modifying the following line.

signmessage "BRrfbPvmgds7XFvU4xhsCVegDM4Do6EyYp" "BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL|0|B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod|B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS|c8ebf2ae235d658e0809915348718dbb262f6884473c00448ba93e7ce4648070"

BRrfbPvmgds7XFvU4xhsCVegDM4Do6EyYp - “collateralAddress” value from the RPC command “protx register_prepare”.

BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL|0|B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod|B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS|c8ebf2ae235d658e0809915348718dbb262f6884473c00448ba93e7ce4648070 - “signMessage” value from the RPC command “protx register_prepare”.

Paste the modified line into the console of your wallet.

Example output

ILrWvvZRZeZhnfFtNwd087rwGsiPJH28GfmoPfjSDhUcEY+joeUd82/lqVnO0FD0V1L8vpjYju92fjMPITVScGI=

STEP 11

Submit the ProRegTx transaction by modifying the following line.

protx register_submit 0300010001ac7584669c70526e0e338d6a2477dc648788140dd0dcbc5915878f9c632d129b0100000000feffffff01e551cd1d000000001976a9149385c0ceafd77df3619e604f4ce7d0317bbcbfae88ac00000000d1010000000000418d9c320ccb347117eb24bf8262f9fea08b809518ad4706fc59f98d439985610100000000000000000000000000ffff9f591f3f32ac1730a9104ead8b642345c1300e81c4d78e874de6050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c910929cbddb56d0fbd2993de634c3ed42de5a8455700001976a914b4b5864ed646cd8591a8ed996fa6c25de0b98bce88ac8f420b431efe6e62a55533099d2e99759767d38f94461325508afe3feadd0a9f00 ILrWvvZRZeZhnfFtNwd087rwGsiPJH28GfmoPfjSDhUcEY+joeUd82/lqVnO0FD0V1L8vpjYju92fjMPITVScGI=

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

ILrWvvZRZeZhnfFtNwd087rwGsiPJH28GfmoPfjSDhUcEY+joeUd82/lqVnO0FD0V1L8vpjYju92fjMPITVScGI= - Output from the RPC command “signmessage”.

Paste the modified line into the console of your wallet.

Example output

9c76272b7ef2a7456c84158424eb138bd3636b09aa2beae973bbed921f1f7868

VPS Console, Putty or Terminal

Open putty and connect using SSH with your Ubuntu server.

Update your Ubuntu server with the following command:

sudo apt-get update && sudo apt-get upgrade -y

Type the following command to go back to your home directory:

cd $HOME

Download the Linux daemon for your wallet with the following command:

wget " https://github.com/BLOCXTECH/BLOCX/releases/download/v4.0.2/BLOCX-4.0.2-Ubuntu-daemon.tar.gz" -O BLOCX-4.0.2-Ubuntu-daemon.tar.gz Extract the tar file with the following command:

tar -xzvf BLOCX-4.0.2-Ubuntu-daemon.tar.gz

Download the Linux tools for your wallet with the following command:

wget "https://github.com/BLOCXTECH/BLOCX/releases/download/v4.0.2/BLOCX-4.0.2-Linux-qt.tar.gz" -O BLOCX-4.0.2-Linux-qt.tar.gz

Extract the tar file with the following command:

tar -xzvf BLOCX-4.0.2-Linux-qt.tar.gz

Type the following command to install the daemon and tools for your wallet:

sudo mv blocxd blocx-cli blocx-tx /usr/bin/

Create the data directory for your coin with the following command:

mkdir $HOME/.blocx

Open nano.

nano $HOME/.blocx/blocx.conf -t

Paste the following into nano.

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=5120af1f913b8a4b459e19cc3ef3f865ba891404853fa317f348635b347e12ef externalip=159.89.31.63

159.89.31.63 - External IPv4 address of your VPS.

5120af1f913b8a4b459e19cc3ef3f865ba891404853fa317f348635b347e12ef - “secret” value from the RPC command “bls generate”.

Save the file with the keyboard shortcut ctrl + x.

Type the following command to start your masternode:

blocxd

Last updated