Using Installation Script
Setting up of TWINS masternode using Installation Script
Last updated
Setting up of TWINS masternode using Installation Script
Last updated
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.
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.
Download, install and sync your TWINS wallet in your local computer. This will be henceforth referred to as the Local Wallet in this guide. Wallet links can be found here: https://win.win/#download or https://github.com/NewCapital/TWINS-Core/releases
Now in the Local wallet, enter the debug console by going to (Tools > Debug console) and type the following command:
Now in the Local wallet still, enter the following command on the debug console:
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:
In the local wallet’s toolbar, click Tools > Open Masternode Configuration File to open masternode.conf and add the following line with appropriate info:
Save the file. For reference see sample format below and the screenshots.
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:
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
Now activate your masternode in your Local wallet, enter the debug console (toolbar: Tools > Debug Console) and type the following command:
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 :)