Using Installation Script

Setting up of TWINS masternode using Installation Script

This guide is for a setting up a TWINS masternode on a Ubuntu 16.04/18.04 64bit server (VPS) and will be controlled from the wallet on your local computer (Local wallet). The wallet on the the VPS will be referred to as the Remote wallet.

Requirements:

  • 1,000,000 TWINS

  • A main computer (Your personal computer) — This will run the Local wallet, hold your collateral 1,000,000 TWINS and can be turned on and off without affecting the masternode.

  • Masternode Server running Ubuntu 16.04/18.04 (VPS — The computer that will be on 24/7 and runs the Remote wallet ). Minimum required specs for VPS: 1GB RAM, 20 GB drive, and one static IPV4 Address.

Local wallet installation:

masternode genkey

This command will generate your <Masternode Private Key>. Save this Key, we will be using it later.

  • Now in the Local wallet still, enter the following command on the debug console:

getaccountaddress chooseAnyNameForYourMasternode

This will create a wallet address and a <Masternode Name> for your masternode. Save this as we will need it later.

  • Send 1,000,000 TWINS to the address generated in the previous step. When you press the Send button, the wallet will calculate the proper transaction fee. Click Yes in the dialog box that follows and proceed to the next step.

IMPORTANT: In the Amount box, type in EXACTLY 1,000,000. This single transaction tells the blockchain, the address you are sending to is a masternode. If you type in more/less than 1,000,000, or attempt to split the payment into two transactions you will not be able to proceed to the next step.

Be absolutely 100% sure that this is copied correctly. And then check it again. We cannot help you, if you send 1,000,000 TWINS to an incorrect address

  • Using your local wallet, wait for 16 confirmations, and then enter the debug console (toolbar: Tools > Debug Console) and type the following command:

masternode outputs

This will display the <Transaction ID> followed by the <Output Index> . Save this to Notepad. (This gets the proof of transaction of sending 1,000,000 TWINS )

  • In the local wallet’s toolbar, click Tools > Open Masternode Configuration File to open masternode.conf and add the following line with appropriate info:


<Name of Masternode> <Unique IP address of the vps>:37817 <Masternode Private Key> <Transaction ID> <Output Index>

Save the file. For reference see sample format below and the screenshots.

masternode.conf
#Example as per above format:
mn1 127.0.0.2:37817 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0

VPS Remote wallet installation:

To install the wallet first you will log into your VPS using your SSH client. After logging in, type the following commands into your VPS terminal.

  • Go to your home directory by typing: cd ~

  • From your home directory, download the install.sh file from the TWINS GitHub repository by typing the below command:

wget https://raw.githubusercontent.com/thecoinmaniac/twins-install/master/twins_install.sh

  • Change the permissions of the file by : chmod 755 twins_install.sh

  • Run the masternode setup script as root: sudo ./twins_install.sh

  • Follow the instruction to install the node

Starting your Masternode:

  • Now activate your masternode in your Local wallet, enter the debug console (toolbar: Tools > Debug Console) and type the following command:

startmasternode alias false <mymnalias>

Where <mymnalias> is the name of your masternode alias (without brackets).

The following should appear:“overall” : “Successfully started 1 masternodes, failed to start 0, total 1”, “detail” : [ { “alias” : “<mymnalias>”, “result” : “successful”, “error” : “” }

  • Now go back to the VPS (remote wallet), start the masternode by: ./twins-cli startmasternode local false

    A message “masternode successfully started” should appear.

  • Use the following command to check status: ./twins-cli masternode status

    You should see something like:{ “txhash” : “334545645643534534324238908f36ff4456454dfffff51311”, “outputidx” : 0, “netaddr” : “45.11.111.111:37817”, “addr” : “WmXhHCV6PjXjxJdSXPeC8e4PrY8qTQMBFg”, “status” : 4, “message” : “Masternode successfully started” }

Thats about it. Congratulations! You have successfully created your masternode.

If you like this tutorial you can donate some TWINS here

Wjrtna3V8u9ngJ5hpBUr2FQxhcC3UibHEi

cheers :)

Last updated