SunCoin Masternode Setup — MacOs

SunCoin Foundation
Aug 26, 2018 · 7 min read
Image for post
Image for post


1. A remote server (Virtual Private Server, VPS) which will be used to host our masternode wallet.
2. PuTTY or ssh command (terminal), which will be used to setup the server (install the dependencies, the wallet itself, and configure everything) after the initial configuration.
3. 10000 SunCoin as collateral (10000 SunCoin + transaction fees).

1. Deploy VPS (Masternode Server)

A remote server is required for setting the masternode. You can choose any VPS provider.
1.1 — I would recommend to choose a location close to you so faster connection will be established.
1.2 — Choose Ubuntu x64 as operating system .
1.3 — Once the server is deployed take note of the IP address and password. You will need them for later use.

2. Configure VPS

2.1 — Start a SSH connection with your VPS, either by using PUTTY or terminal. I will be using terminal in this guide, but feel free to use PUTTY if you need it.

Image for post
Image for post

2.2 - Once you have logged in, make sure your update operating system by typing:

apt-get update
apt-get upgrade
(Press Y and ENTER when prompted)
apt-get dist-upgrade
(Press Y and ENTER when prompted)

2.3 - Wait for a few minutes for the update to finish and then install required packages:

apt-get install software-properties-common nano libboost-all-dev libzmq3-dev
libminiupnpc-dev libssl-dev libevent-dev
(Press Y and ENTER when prompted)
add-apt-repository ppa:bitcoin/bitcoin
(Press ENTER when prompted)
apt-get update
apt-get install libdb4.8-dev libdb4.8++-dev
(Press Y and ENTER when prompted)

Let it work for a few minutes and you are all set with operating system.

3. Install Wallet

3.1 - Download the latest wallet version from:

3.2 - Open file by double click on it and then drag and drop to Applications folder.

Image for post
Image for post

3.3 - Now the wallet is installed. Open the application by double clicking the file dropped in Applications folder.
Accept the dialog confirming the application is from an unknown developer
and then Allow incoming connections.

3.4 - Now the wallet will start downloading data to synchronize with the network. Wait for a few minutes.
If the icon displays a tick after a few minutes, wallet is fully synchronized.

Image for post
Image for post

3.5 - As soon as wallet start go to SETTINGS -> OPTIONS -> WALLET and check “Show Masternodes Tab”. Press OK.

3.6 - Close Suncoin wallet and open it again. You will see MASTERNODES tab. Wait for Synchronizing finish.

4. Wallet Configuration

Now with wallet correctly installed, we will need to transfer collateral funds to setup masternode.

4.1 -First of all we will need to setup Masternode configuration in wallet. Open Debug console in Tools section and generate the private key for the masternode by typing:

masternode genkey

Image for post
Image for post

And copy it to notepad. Save this key for later use.

4.2 — Now create a new receiving address in File > Receiving Address. Choose a name for the address and click Ok.

Image for post
Image for post

Copy address by clicking over it and send 10000 (Exactly​) SunCoin from exchange to this address in one single transaction. Make sure you correctly set receiving address in transaction before confirming.

Image for post
Image for post

Wait for 15 confirmations (30 minutes approximately) and then you will see the transaction in your wallet.

4.3 — Go back to Debug console and type

masternode outputs

To retrieve transaction id and output id.

Image for post
Image for post

4.4 — Copy the transaction id and output id Save the output in the text file for future use.

5. Masternode Configuration

5.1 — In your wallet open Tools -> Open Masternode Configuration File to edit masternode.conf file.

Add a new line following format of example by setting your own values:
● Masternodename — any you want
● IP:port — Your VPS ip address and port 10332(port is fixed for all)
● masternodeprivkey — You got it from step 4.1
● collateral_output_txid — first part of masternode outputs
● collateral_output_index — second part of masternode outputs (usually 1 or 0)

2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0

Make sure every is separated by one space. Save changes in masternode.conf file and exit.

5.2 — Now we will edit wallet configuration file by opening Tools -> Open Wallet Configuration File modify the following fields:

● Rpcuser: any
● Rpcpassword: any
● Externalip: The one of your VPS (step 2.1)
● Masternodeprivkey: Private key from step 4.1

File should look like:


5.3 — Save changes in suncoin.conf file and exit.

5.4 — Restart wallet again and wait for full sync.

Masternode Configuration (VPS)
You may want to use the masternode installation script available at:
Skip to step 7 if you use this script

5.5 — Go back to your VPS connection and create a new folder where wallet files will be downloaded and enter:

mkdir suncoin && cd suncoin

5.6 — Download the latest wallet version in VPS:

wget (*)

(*) In case link is not working check for link in github repository at

5.7 — Extract all files from the wallet tar.gz file using the tar command, delete archive and go to suncoin folder:

tar -xvf suncoin-1.0-linux64.tar.gz && rm suncoin-1.0-linux64.tar.gz && cd

5.8 — Make it possible to launch SunCoin core from any directory and start SunCoin wallet:

chmod +x suncoin*
sudo cp suncoin-cli suncoin-qt suncoin-tx suncoind /usr/local/bin
cd ../..
rm -r -f suncoincore-1.0.0
suncoind -daemon

5.9 — Make sure your wallet is syncing with the SunCoin network:

suncoin-cli getinfo
suncoin-cli mnsync status

Wait for a few minutes and if last command returns the following message wallet is synced(*):

“IsBlockchainSynced”: true ,
“IsMasternodeListSynced”: true ,
“IsWinnersListSynced”: true ,
“IsSynced”: true ,

(*) Check port 10332 (suncoin server port) is open in case you have deployed a firewall.

6. Install Sentinel (VPS)

6.1 — Go back to your VPS connection and make sure Python version 2.7.x or above is installed:

cd ~
python — v
cd /root/suncoin

6.2 — Update and install requirements:

apt-get update
apt-get -y install python-virtualenv

6.3 — Download and install sentinel:

git clone && cd sentinel

6.4 — Create a Virtual Environment in python and install requirements:

apt install virtualenv
(Press Y and ENTER when prompted)
virtualenv ./venv
./venv/bin/pip install -r requirements.txt

6.5 — Schedule execution of sentinel by setting up a crontab entry to call Sentinel every minute:

crontab -e

Copy and paste this text:

* * * * * cd /root/suncoin/sentinel && ./venv/bin/python bin/ >/dev/null

6.6 — Save changes in crontab and exit. If you are using nano press CTRL+O -> ENTER ->CTRL+X.

6.7 — Configuring Sentinel:

nano sentinel.conf

6.8 — Set suncoin configuration file:


6.9 — Save changes in file and exit. If you are using nano press CTRL+O -> ENTER -> CTRL+X.

6.10 — Test Sentinel:

cd /root/suncoin/sentinel
SENTINEL_DEBUG=1 ./venv/bin/python bin/

Run command after masternode start only. It will not show sentinel status now.

7. Start Masternode

7.1 — In case is not open, start wallet again and wait for full sync.

Image for post
Image for post

7.2 — Start masternode by opening Masternodes tab -> My masternodes -> Start all.
Your status will become “PRE_ENABLED” and then, after 30–60min, it will be changed to “ENABLED” (*)

(*) Sometimes you should wait for 1–2 hours for your masternode sync with another nodes andbecome ready for starting, if it not start immediately don’t worry, just try a little bit later.

If after that time your masternode status is “NEW_START_REQUIRED”, relaunch your node by repeating step.

Don’t worry if status is “WATCHDOG_EXPIRED”. It will go back to “ENABLED” in 30–60 minutes.

7.3 — You can also check if masternode is properly working by checking your masternode address
in suncoin explorer .

Guide created by & Donia48 Published for SunCoinFoundation.
SCF Donation address: STLWKWEmED8DVVYVvFwXdRnoedYmPmvgei



Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store