Masternode installation

30 mn

Difficulty: intermediate


Open the «debug console» in the menu: Tools -> Debugg console

Type the following command:
getnewaddress node1

The console gives you an address of this type: MBzYAF3SS1vEuh5k1tJyA7gNX1uA1AMraJ


For infomation: The address created here is « node1 »

Type the following command:
masternode genkey

The console gives you a key. ex: 3bKqdJHG4xuMin725ksErVCsvNoLgmNJvJfiVEEYBtDAFxqGHwx
Save these information in a text file.

Send on the address created previously, in our example: MBzYAF3SS1vEuh5k1tJyA7gNX1uA1AMraJ


If you have multiple wallets, regroup the 1000XMCC on an unique address and use it to make the 1000 XMCC transaction on MBzYAF3SS1vEuh5k1tJyA7gNX1uA1AMraJ

The transaction will be confirmed


The transaction must have at least 15 confirmations for the masternode to be enabled. You should have these 15 confirmations once the tutorial completed.



It would be a shame to lose your investment and your wallet, in order to overcome that, I advise you to encrypt and save it.

To do this, go to the top menu: Settings -> Wallet Encryption


Caution: Encryption is an irreversible procedure and loss of password means loss of the wallet!


Depending on the power of your computer, it may take several minutes, do not panic ! Restart your wallet at the end of the encryption.

Once you have restarted, simply go to the top menu: File -> Save wallet
Save the file on several USB sticks to not lose it.

Masternode setup – Online server

This step can be ignored if you already have an available server connected to a permanent and stable internet connection.
We will install the masternode on a VPS (Virtual Private Server). In order to do so, we will create a VPS on but you can do it on OVH, 1and1...
You can find VPS servers from 2.99 € per month.
Create an account at and log into the admin site to create your first server.
Before creating a server, you need to create a set of RSA connection keys, nothing very complicated, these keys are valid for all the servers created on Scaleway !
The RSA key set acts as login and password, it also greatly increases the security of your server. Most VPS service providers currently use this type of authentication.


Create the RSA Key Pair

On OSX and Linux


  • Open a terminal
  • Generate a new Key typing the following command ssh-keygen -t rsa
  • Give a name to your Key Enter file in which to save the key (/Users/me/.ssh/id_rsa):otherwise, the default name will be id_rsa
  • Set a passphrase Enter passphrase (empty for no passphrase): this step is not mandatory but highly recommended
  • You should now have two files for your Key (a public key that we will copy on your servers, and a private key that you must keep secret), in our example the two files are located in the /Users/me/.ssh/ directory

The public Key is named The private Key is named id_rsa

The entire key generation looks like this:
ssh-keygen -t rsa

Generating public/private rsa key pair.
Enter file in which to save the key (/Users/me/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/me/.ssh/id_rsa.
Your public key has been saved in /Users/me/.ssh/
The key fingerprint is:
12:93:cc:c1:5b:76:4f:b6:b9:b4:65:b0:33:8b:f1:59 [email protected]
Copy your public key content which is required for step 2
cat /Users/me/.ssh/
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD3TsFepMvwNBIjsr3Zr85mj/Aho/tk3220ryzVxgxR44EWz9xe8YhUt0Tg08e4pHns8DV6UnGwDeGLtxNwSFZlh1Zox3jACHL2dId04NAjLno1MsddByudPB7UpRu+nUjN7b8/rIAjXNu4k7H+E1QEz8P7giPiql2YMxURO9TV0tbl4M9hNG0/S6ka/naF8pIUnz7Um1nHGiBsMh9IyJAMhdWJ1nN3p1dnG3ixvyf1Mb8+7sbHjRgdUA3L8/HTBOCp+twB9uG+GfFEdheyHcnbxdtkByLzx2GbEnLNZZ99pF9i/cdpcaWCpnnqf/6TNVpFyCWhSfBq8+4OKUHt5vDB


  • Download PuTTYgen
  • Launch PuTTYgen
  • Select SSH-2 RSA and click the “Generate” button.
  • Two keys are generated (a public key that we will be copy on your servers, and a private key that you must keep secret).
  • Fill-in the Key-comment field with a name to help you identify this key pair
  • Click the “Save public key” button and save it in the folder of your choice
  • CClick the “Save private key” button and save it the same folder
  • Select the public key content. Copy it (below “Public key for pasting into OpenSSH authorized_keys file”) into your clipboard which is required for step 2

Save the content of the public Key on the SSH Keys section

You now must save the content of the public Key in the Control Panel.

  • From the Control Panel, open the pull-down menu on your account name and click on “Credentials” link.
  • In the SSH Keys section paste the content of your public key in the text area and click on “New SSH Key” button.

You are now ready to create and start your first server!


VPS Creation

Select – « Create server »
Select any of the servers (the cheapest does very well)

Select: Ubuntu Xenial (16.04 latest)


It wan work with other distributions but Ubuntu is easy to use.

Validate the creation of the server and wait for the server to start (this can take up to 10 minutes)
Congratulations, you created a VPS!


Connection to the server

Download and install SSH Terminus client (Compatible with Linux, MacOS and Windows)

Select “KeyChain”

Select “Add key”

Fill in the boxes:

  • Label: Name of your server
  • Passphrase: Your password linked to your RSA key
  • Private Key: Your private key previously created
  • Public Key: Your public key previously created

Save and go back to the menu.
Select “Hosts” -> “New Host”.

  • Label: My Server name
  • Address: Server IP Address
  • Username: root
  • Password: RSA key password

Select “KEY ->” and choose the key selected previously.

Then select “Connect”


Server configuration

Type the following commands:
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get -y install software-properties-common libzmq3-dev pwgen
sudo apt-get -y install git libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libboost-all-dev unzip libminiupnpc-dev python-virtualenv
sudo apt-get -y install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
sudo apt-get -y install virtualenv
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get -y install libdb4.8-dev libdb4.8++-dev
sudo adduser monoeci
sudo adduser monoeci sudo
su monoeci
tar xvzf monoeciCore-
sudo cp monoeciCore-0.12.2/bin/monoecid /usr/bin/
sudo cp monoeciCore-0.12.2/bin/monoeci-cli /usr/bin/
sudo cp monoeciCore-0.12.2/bin/monoeci-tx /usr/bin/
rm -rf monoeciCore-0.12.2

The CP commands in the /usr/bin directory to directly launch the client without using ./monoecid but monoecid


Wait approximatively 1 minute and do CRTL+C in order to make the windows active again


Before doing these commandes, please change the following paramaters: masternodeprikey = Key previously created with the « masternode genkey » command and externalip = VPS Public IP (your server on Scaleway)

Copy and paste this entire block in one go:
USERNAME=$(pwgen -s 16 1)
PASSWORD=$(pwgen -s 64 1)
cat << EOF > ~/.monoeciCore/monoeci.conf
masternodeprivkey=PRIVATE KEY
externalip=IP DU SERVEUR VPS
Save it by pressing CTRL+X, Y, then ENTER. Now launch the client:
monoeci-cli getinfo
Blockchain download

Congratulations, you server is connected, functionnal and is now synchonizing. Synchronization can take few hours.

In order to check if your server is active, type the following command :
monoeci-cli mnsync status

If the assetID is not 999, your server did not finish its synchronization and your masternode will not work! Keep waiting.

Sentinel installation:
git clone && cd sentinel
virtualenv ./venv
./venv/bin/pip install -r requirements.txt 
Test the settings:
./venv/bin/py.test ./test
crontab -e
Press enter and copy/paste the following command at the end of the file:
* * * * * cd /home/monoeci/sentinel && ./venv/bin/python bin/ >/dev/null 2>&1

Save it by pressing CTRL+X, Y, then ENTER.


Masternode Activation

Go back on your windows or MacOS client , open the debug console and type:
masternode outputs

Copy the code displayed (ex: 002eae7f9568c5751b091facdb58fe612834349c8573dde96f3330a28138be97) ->
cela correspond a l’id de votre transaction de 1000XMCC voir
Look for the « masternode.conf » or in the wallet « Tools -> Masternode config »


In windows, you can find it in : C:\Users\VOTRENOMD’UTILISATEUR\AppData\Roaming\MonacoCoinCore\masternode.conf
Enable the hidden files, APPData is one. Open the masternode.conf file with a text editor.

An example is already available:

  • Format: alias IP:port masternodeprivkey collateral_output_txid collateral_output index
  • alias: masternode alias, here mn1
  • IP: VPS Public IP
  • port: 24157
  • masternodeprivkey: key generated with « masternode genkey »
  • collateral_output_txid collateral_output: generated in the terminal with « masternode outputs »
  • index: 0 or 1 (here 0)
# Masternode config file
# Format: alias IP:port masternodeprivkey collateral_output_txid collateral_output_index
# Example: mn1 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0
monserver-zeus 3c7854No7bQ585495UMBnwoZvPv4DefJC4yeEAmpwKgLRzsBr1W 002eae7f9568c5751b091facdb58fe612834349c8573dde96f3330a28138be97 0

Save the file and relaunch Monoeci
Unlock the client: « Settings -> Unlock wallet »

Open the Debug Console again:
masternode start-alias monserver-zeus

If result = successfull, your masternode has been correctly started.

You can also check if your masternode is working with the following command on your VPS:
monoeci-cli masternode status

Congratulations, you just created your first Monoeci Masternode, you will received your first reward in the days to come.


Securing Server

1. Firewall

sudo su
apt-get install ufw
ufw default allow outgoing
ufw default deny incoming
ufw allow ssh/tcp
ufw limit ssh/tcp
ufw allow 24157/tcp
ufw allow 24156/tcp
ufw allow sftp/tcp
ufw logging on
ufw enable

2. FailToBan

sudo su
apt -y install fail2ban
systemctl enable fail2ban
systemctl start fail2ban

3. Anti RootKit

sudo apt -y install rkhunter

No Investment Advice

The information provided on this website does not constitute investment advice, financial advice, trading advice, or any other sort of advice, and you should not treat any of the website’s content as such. Monoeci does not recommend that any cryptocurrency should be bought, sold, or held by you. Nothing on this website should be taken as an offer to buy, sell or hold a cryptocurrency. Do conduct your own due diligence and consult your financial advisory before making any investment decision. Monoeci will not be held responsible for the investment decisions you make based on the information provided on the website.