# Masternode Multinode easy to deploy

## Required

* **Masternode collateral**\
  Valid collateral amount related to the current block as well as each blockchain specification.\
  \
  Please review the information presented on this website in the [<mark style="color:blue;">**Coins**</mark>](https://docs.decenomy.net/coins) section. Within each coin information, the collateral values are listed below on the **Rewards Breakdown** Board<br>
* **Local Wallet**\
  An installed wallet is required to handle the collateral. It can be downloaded directly from the GitHub coin repository.\
  \
  Please review the information presented in this docs in the [<mark style="color:blue;">**Coins**</mark>](https://docs.decenomy.net/coins) section. Within each coin information, a **Wallet Download** link for that Github is provided.<br>
* **VPS with UBUNTU 22.04** ([**preferable**](https://contabo.com/en/vps/?utm_source=cj\&utm_medium=affiliate\&utm_campaign=vps\&source=affiliate\&AID=12454592\&PID=6839992))\
  A Virtual Private Server is required to keep the masternodes up and running with continuous and stable connections. \
  It should be running the UBUNTU v22.04 Linux distribution installed. \
  [**Learn how to set up a VPS** ](https://docs.decenomy.net/tutorials/decenomy-masternodes/setting-up-a-virtual-private-server-vps)<br>
* **Terminal emulator**\
  Tool needed to connect to the above VPS. The most commonly used one is **Putty.** [<mark style="color:blue;">**Learn how to use PuTTY**</mark> ](https://docs.decenomy.net/tutorials/decenomy-masternodes/using-a-terminal-emulator-putty)\
  **O**ther more modern options such as  **Tabby** [**https://github.com/Eugeny/tabby**](https://github.com/Eugeny/tabby) are also good and viable. <br>
* **DECENOMY Masternode Multinode**\
  To easily install and manage your masternodes multinode. \
  For more detailed information about this tool please see the information presented on this website in the [**DECENOMY Multinode Script**](https://docs.decenomy.net/tutorials/decenomy-multinode-script) section. We highly recommend [**Contabo VPS**](https://contabo.com/en/vps/?source=affiliate\&AID=12454592\&PID=6839992) as they have proven to be a reliable and consistent provider.<br>

### <mark style="color:green;">Step 1 - Terminal Emulator ( VPS )</mark>

\
To get started, we need to install the [<mark style="color:blue;">**DECENOMY Multinode Script**</mark>](https://docs.decenomy.net/tutorials/decenomy-multinode-script) on the purchased VPS.\
\
To install and run the script for the first time, you should copy and paste the following command into your terminal emulator after connecting to your VPS, with root privileges:&#x20;

**`wget -q https://raw.githubusercontent.com/decenomy/mnscript/main/decenomy.sh && bash decenomy.sh`**

*Note:*\
*After the first run, the script will convert the file " decenomy.sh " into an executable file named decenomy. Therefore, the user can simply type the following command at the terminal prompt to run the script the next time:*\
\
\&#xNAN;***./decenomy***\
\
Your terminal emulator will display a screen like the one shown below:

<div align="left"><figure><img src="https://505947675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiHm486VotxVq44a_Jg%2Fuploads%2F3ESvVDi7JlxyvYeL6IYo%2FScript_1_main_menu.PNG?alt=media&#x26;token=052f5f58-2985-46e0-bdb1-859baa3cf452" alt=""><figcaption></figcaption></figure></div>

Enter the number of the coin you want to install the masternode on and follow the script instructions. ( if you need help on the script side, please follow this chapter at Multinode script - [<mark style="color:blue;">**link**</mark>](https://docs.decenomy.net/tutorials/decenomy-multinode-script/coin-selection) )\
\
At the end, you will get a screen like this:

<div align="left"><figure><img src="https://505947675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiHm486VotxVq44a_Jg%2Fuploads%2FPiQ1AUy6ZlI9xYK18EuU%2FScript_2_2_1coin_selection.PNG?alt=media&#x26;token=c9489e87-90ae-4220-a6e8-6089a0b380aa" alt=""><figcaption></figcaption></figure></div>

Leave the terminal emulator in this state so that you have access to the VPS IP shown above, which will be used in the next step for the Local Wallet.

### <mark style="color:green;">Step 2 - Local Wallet</mark>

To install the local wallet of the desired coin, please visit the [<mark style="color:blue;">**Coins**</mark>](https://docs.decenomy.net/coins) section. Within each coin's information, a **Wallet Download** link from its respective Github repository is provided.\
\
Make sure you have enough funds in your wallet to process the collateral creation, and follow the steps shown in the following screen:

<figure><img src="https://505947675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiHm486VotxVq44a_Jg%2Fuploads%2FypuUpiFuouUrkx278jP8%2FCollateral_creation.gif?alt=media&#x26;token=ab9ec8f3-550c-44e6-9374-faf942ecc0ab" alt=""><figcaption></figcaption></figure>

Once the collateral is created, please open the ***masternode.conf*** file by selecting the icon in the upper right corner and using your preferred text editor.

<div align="left"><figure><img src="https://505947675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiHm486VotxVq44a_Jg%2Fuploads%2FLjvhKvoYqCr0c1Xq2RJx%2F1_18_Script_Masternode_open_masternode_conf.png?alt=media&#x26;token=130170fc-761a-4f22-a4a8-be47b3f4d78d" alt=""><figcaption></figcaption></figure></div>

The contents of the file will always be organized in the same order.

**Example:** \ <mark style="color:orange;">mn1</mark> <mark style="color:blue;">127.0.0.2:45328</mark> <mark style="color:red;">P3HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg</mark> <mark style="color:green;">2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c</mark> <mark style="color:purple;">0</mark>

**Format:** \ <mark style="color:orange;">alias</mark> <mark style="color:blue;">IP:port</mark> <mark style="color:red;">masternodeprivkey</mark> <mark style="color:green;">collateral\_output\_txid</mark> <mark style="color:purple;">collateral\_output\_index</mark>

<figure><img src="https://505947675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiHm486VotxVq44a_Jg%2Fuploads%2FzOIZQGm8fu5UeHLc6hjG%2F1_5_2Masternode_config_file.png?alt=media&#x26;token=a3cce8bd-cd05-4a98-995f-8c36345959be" alt=""><figcaption></figcaption></figure>

For the next step, we will need the masternodeprivkey information, which is different and unique for each masternode collateral created.\
In this example, we will have three masternodeprivkeys for each of the three masternode collaterals created.

### <mark style="color:green;">Step 3 - Adding masternodeprivkey to Multinode</mark>

On your terminal emulator, follow the steps illustrated below to add the masternodeprivkey and create your masternode multinode. If you need more help with the script, please refer to this chapter on the **Multinode script** - [<mark style="color:blue;">**link**</mark>](https://docs.decenomy.net/tutorials/decenomy-multinode-script/coin-selection/masternode-multinode-management) )

<div align="left"><figure><img src="https://505947675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiHm486VotxVq44a_Jg%2Fuploads%2FlEtu1gkh0bRqVIOfOSTS%2FAdd_Multinodes.gif?alt=media&#x26;token=5de5c6bd-823a-4777-b7cf-5e477b88933b" alt=""><figcaption></figcaption></figure></div>

At this point, we should already have:\
\
\- A local wallet with sufficient funds that has created the necessary collateral.\
\
\- A running wallet on our VPS with the masternodeprivkey entered in the multinode list. This information comes from the local wallet.\
\
On the terminal emulator, on the script side, follow the instructions:\
**Coin Selected** - **Wallet and masternode stats** - **Masternode Statistics** \
We should be able to see the following information, indicating that three masternodes have been created, but are still disabled:

<div align="left"><figure><img src="https://505947675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiHm486VotxVq44a_Jg%2Fuploads%2FFaiCNZD9G6nnEW6odZ4c%2F1_10_MN_ready_launch.PNG?alt=media&#x26;token=60e77973-1d45-48dd-95f7-0dff14989e93" alt=""><figcaption></figcaption></figure></div>

When we reach this point we can go back to our local wallet and start the masternodes by clicking on the "**Start all**" button.\
\
Note: If you are adding more masternodes to those already created and enabled, please use the three dots at the end of each masternode line and select "Start". Otherwise, the "Start all" button will reset your already enabled masternodes.

<figure><img src="https://505947675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiHm486VotxVq44a_Jg%2Fuploads%2Fi2ksUGOc2JQLpYBtwSfM%2F1_11_1_MN_start_all_inactive.png?alt=media&#x26;token=18d3f175-c2ae-471a-8ed8-500cf2f16d37" alt=""><figcaption></figcaption></figure>

After executing the start command on the local wallet, if we reload the information available to our script running on the VPS, we can see that our masternodes have become active on the network.

<div align="left"><figure><img src="https://505947675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiHm486VotxVq44a_Jg%2Fuploads%2FOaE6KdTYORrhBKmOMYTx%2F1_12_Script_masternode_stats.PNG?alt=media&#x26;token=0da25943-d5ad-493d-adb8-8aff842db060" alt=""><figcaption></figcaption></figure></div>

Going deeper into the script, we can see the classic masternode report with **status 4**. To do this, select **option 2**, "**Masternode status complete info**". This will give us more detailed information about the status of our masternodes in the network.

<figure><img src="https://505947675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiHm486VotxVq44a_Jg%2Fuploads%2FM1m3bb5ULriyi8YHS8h1%2F1_13_Script_Masternode_status_complete_info.PNG?alt=media&#x26;token=b2d05c35-4be5-4443-96bb-75d0f108011a" alt=""><figcaption></figcaption></figure>

Last level to check if the masternodes are active and running in the network we can go back to the screen and select option **3 - Masternode on Explorer.** This will provide absolute proof that the masternodes are up and running on the network.

<figure><img src="https://505947675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiHm486VotxVq44a_Jg%2Fuploads%2FjxuXpzbdWaqduuYaEQ78%2F1_14_Script_Masternode_on_explorer.PNG?alt=media&#x26;token=0c1416f6-24e5-4024-83ca-d787f5514d49" alt=""><figcaption></figcaption></figure>

The masternodes are properly installed and active. As soon as they ping the network (approximately every 2 hours), their status will change to "**ENABLED**" and stay that way.\
\
At this point, the local wallet can be turned off without affecting the masternode rewards received, as they are tied to the blockchain and not the wallet's status. The VPS, however, needs to remain always on so that the masternode stays online for the network.
