> For the complete documentation index, see [llms.txt](https://blocx.gitbook.io/blocx./llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blocx.gitbook.io/blocx./get-started/lite-masternode.md).

# Lite Masternode

## Masternode on Ubunutu Server 22.04 tutorial

### **VPS REQUIREMENTS**

<div align="left"><figure><img src="/files/kQgOtviPSDCArnBdbaI0" alt=""><figcaption></figcaption></figure></div>

### STEP 1

Open your Windows wallet.

**Go to Tools -> Debug console.**

<figure><img src="/files/2QRx981ucHEfrvq3FE6P" alt=""><figcaption></figcaption></figure>

###

### STEP 2

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

<mark style="color:blue;">**getnewaddress**</mark>

Example output

**BHu7BFFtfsU3FgfUX1y5JnAQNVZ28348UK**

<figure><img src="/files/ero5JTEd1JUaIHxVsUWd" alt=""><figcaption></figcaption></figure>

###

### 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.

<figure><img src="/files/8CCiqZ6DflwySGb9MtdE" alt=""><figcaption></figcaption></figure>

### STEP 4

Go back to the console of your wallet.

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

<mark style="color:blue;">**getnewaddress**</mark>

Example output

**BRrfbPvmgds7XFvU4xhsCVegDM4Do6EyYp**

<figure><img src="/files/9VdqFUZOOQCk5wyrOyPP" alt=""><figcaption></figcaption></figure>

### 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)**\
\ <mark style="color:blue;">**Lite Masternode:**</mark> 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.

<figure><img src="/files/FapCfYYzsy8j53g40Bj5" alt=""><figcaption></figcaption></figure>

### STEP 6

Go back to the console of your wallet.

Identify the transaction with the following RPC command:

<mark style="color:blue;">**masternode outputs**</mark>

Example output

**{**\
&#x20;**"618599438df959fc0647ad1895808ba0fef96282bf24eb177134cb0c329c8d41": "1"**\
**}**

<figure><img src="/files/gkbWooihrBGgLcfkCMOK" alt=""><figcaption></figcaption></figure>

### STEP 7

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

<mark style="color:blue;">**bls generate**</mark>

Example output

**{**\
&#x20;**"secret": "5120af1f913b8a4b459e19cc3ef3f865ba891404853fa317f348635b347e12ef",**\
&#x20;**"public": "050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c91"**\
**}**

<figure><img src="/files/6HgtXj0VSoFV4aZfIEry" alt=""><figcaption></figcaption></figure>

### STEP 8

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

<mark style="color:blue;">**getnewaddress**</mark>

Example output

**B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod**

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

<mark style="color:blue;">**getnewaddress**</mark>

Example output

**B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS**

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

<mark style="color:blue;">**getnewaddress**</mark>

Example output

**BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL**

<figure><img src="/files/ruLM0GekEZWPZw70GJt0" alt=""><figcaption></figcaption></figure>

### STEP 9

Prepare the ProRegTx transaction by modifying the following line.\
\
**Lite Masternode**\
\ <mark style="color:blue;">**protx register\_prepare\_lite 618599438df959fc0647ad1895808ba0fef96282bf24eb177134cb0c329c8d41 1 159.89.31.63:12972 B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod 050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c91 B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS 0 BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL BHu7BFFtfsU3FgfUX1y5JnAQNVZ28348UK**</mark>

**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

**{**\
&#x20;**"tx": "0300010001ac7584669c70526e0e338d6a2477dc648788140dd0dcbc5915878f9c632d129b0100000000feffffff01e551cd1d000000001976a9149385c0ceafd77df3619e604f4ce7d0317bbcbfae88ac00000000d1010000000000418d9c320ccb347117eb24bf8262f9fea08b809518ad4706fc59f98d439985610100000000000000000000000000ffff9f591f3f32ac1730a9104ead8b642345c1300e81c4d78e874de6050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c910929cbddb56d0fbd2993de634c3ed42de5a8455700001976a914b4b5864ed646cd8591a8ed996fa6c25de0b98bce88ac8f420b431efe6e62a55533099d2e99759767d38f94461325508afe3feadd0a9f00",**\
&#x20;**"collateralAddress": "BRrfbPvmgds7XFvU4xhsCVegDM4Do6EyYp",**\
&#x20;**"signMessage": "BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL|0|B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod|B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS|c8ebf2ae235d658e0809915348718dbb262f6884473c00448ba93e7ce4648070"**\
**}**<br>

<figure><img src="/files/QriEWEUln35A45ZZfJ0H" alt=""><figcaption></figcaption></figure>

### STEP 10

Sign the ProRegTx transaction by modifying the following line.

<mark style="color:blue;">**signmessage "BRrfbPvmgds7XFvU4xhsCVegDM4Do6EyYp" "BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL|0|B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod|B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS|c8ebf2ae235d658e0809915348718dbb262f6884473c00448ba93e7ce4648070"**</mark>

**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=**

<figure><img src="/files/tdKkwWFv6Pf9JUAEB6NK" alt=""><figcaption></figcaption></figure>

###

### STEP 11

Submit the ProRegTx transaction by modifying the following line.

<mark style="color:blue;">**protx register\_submit 0300010001ac7584669c70526e0e338d6a2477dc648788140dd0dcbc5915878f9c632d129b0100000000feffffff01e551cd1d000000001976a9149385c0ceafd77df3619e604f4ce7d0317bbcbfae88ac00000000d1010000000000418d9c320ccb347117eb24bf8262f9fea08b809518ad4706fc59f98d439985610100000000000000000000000000ffff9f591f3f32ac1730a9104ead8b642345c1300e81c4d78e874de6050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c910929cbddb56d0fbd2993de634c3ed42de5a8455700001976a914b4b5864ed646cd8591a8ed996fa6c25de0b98bce88ac8f420b431efe6e62a55533099d2e99759767d38f94461325508afe3feadd0a9f00 ILrWvvZRZeZhnfFtNwd087rwGsiPJH28GfmoPfjSDhUcEY+joeUd82/lqVnO0FD0V1L8vpjYju92fjMPITVScGI=**</mark>

**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**

<figure><img src="/files/lINR5593eRX9E32ZDSlq" alt=""><figcaption></figcaption></figure>

### VPS Console, Putty or Terminal

Open [putty](https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe) and connect using SSH with your Ubuntu server.

Update your Ubuntu server with the following command:

<mark style="color:blue;">**sudo apt-get update && sudo apt-get upgrade -y**</mark>

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

<mark style="color:blue;">**cd $HOME**</mark>

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

<mark style="color:blue;">**wget**</mark> [<mark style="color:blue;">**"**</mark>](https://github.com/BLOCXTECH/BLOCX/releases/download/v2.0.0/Blocx-2.0.0-ubuntu-daemon.tar.gz) <mark style="color:blue;">**<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**</mark>\
\
Extract the tar file with the following command:

<mark style="color:blue;">**tar -xzvf BLOCX-4.0.2-Ubuntu-daemon.tar.gz**</mark>

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

<mark style="color:blue;">**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**</mark>

Extract the tar file with the following command:

<mark style="color:blue;">**tar -xzvf BLOCX-4.0.2-Linux-qt.tar.gz**</mark>

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

<mark style="color:blue;">**sudo mv blocxd blocx-cli blocx-tx /usr/bin/**</mark>

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

<mark style="color:blue;">**mkdir $HOME/.blocx**</mark>

Open nano.

<mark style="color:blue;">**nano $HOME/.blocx/blocx.conf -t**</mark>

Paste the following into nano.

<mark style="color:blue;">**rpcuser=CHOOSEYOURUSERNAME**</mark>**&#x20;**<mark style="color:red;">**(Choose custom & safe username)**</mark>\ <mark style="color:blue;">**rpcpassword=CHOOSEYOURPASSWORD**</mark>**&#x20;**<mark style="color:red;">**(Choose custom & safe password)**</mark>\ <mark style="color:blue;">**rpcbind=127.0.0.1**</mark>\ <mark style="color:blue;">**rpcallowip=127.0.0.1**</mark>\ <mark style="color:blue;">**listen=1**</mark>\ <mark style="color:blue;">**server=1**</mark>\ <mark style="color:blue;">**daemon=1**</mark>\ <mark style="color:blue;">**maxconnections=125**</mark>\ <mark style="color:blue;">**masternode=1**</mark>\ <mark style="color:blue;">**masternodeblsprivkey=5120af1f913b8a4b459e19cc3ef3f865ba891404853fa317f348635b347e12ef**</mark>\ <mark style="color:blue;">**externalip=159.89.31.63**</mark>

**159.89.31.63** - External IPv4 address of your VPS.

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

<figure><img src="/files/JUQKqd7jwg7FIFMOzLbd" alt=""><figcaption></figcaption></figure>

Save the file with the keyboard shortcut ctrl + x.

Type the following command to start your masternode:

<mark style="color:blue;">**blocxd**</mark>

&#x20;
