NOTE: The guide below is for NULS 1.0, which is set to end on 9/11/2019. If you would like to set up a NULS 2.0 node using your own server, please see our NULS 2.0 upgrade guide here: NULS 2.0 Upgrade Guide |
The following guide will help you set up your own self-hosted NULS agent "cold" node on a linux cloud hosted server. "Cold" nodes are ideal because they do not hold your collateral private keys on them, and thus it is not possible to lose your NULS if your node becomes compromised. To follow this guide, you'll need a basic understanding of Linux and some of the common tools like putty. Don't know where to get started? Would you rather have the professionals host it? Just reach out to the Node Forge team at sales@nodeforge.io to get started!
If prospective operators need additional support on this guide, drop us a line on our Technical Support channel in our Discord.
Install a helper add-on to unzip files and firewall. If using network storage on platforms such as scaleway, make sure you do not block your storage using ufw inadvertently. See here: https://www.scaleway.com/docs/configure-ufw-firewall-on-ubuntu-bionic-beaver/
apt-get install unzip ufw ufw allow 22 ufw allow 8016 ufw enable |
On the server, create a new user to run the nuls wallet software, then switch to that user
sudo adduser --disabled-password --gecos "" nuls-agent sudo su nuls-agent |
cd ~ wget http://nuls-usa-west.oss-us-west-1.aliyuncs.com/1.1.5/NULS-Wallet-linux64-1.1.5.tar.gz wget http://nuls-usa-west.oss-us-west-1.aliyuncs.com/data/data-1219733.zip tar -zxf NULS-Wallet-linux64-1.1.5.tar.gz unzip data-1219733.zip |
Start the node software
sh ~/bin/start.sh |
Start the command line interface and make sure you get a good response back from the network.
sh ~/bin/cmd.sh getconsensus |
Let your node synchronize until the "localBestHeight" attribute of your node matches the "netBestHeight" attribute. You can also compare it to the highest block number under "transactions" on http://explorer.nuls.io/. You can check your current synchronization with the following command:
getnetinfo |
Create an address for packing on the server. This will be your "PACKING_ADDRESS"
create |
Do not set a password. Just hit enter. This address will not hold any NULS in it, so it's safe |
Get the private key of the packing address you just created by running the "getaccounts" command, and copying the contents of the "address" and "priKey" field to a notepad for later use. This will be your "PACKING_ADDRESS" and "PACKING_KEY", respectively.
getaccounts 0 0 |
In your NULS "collateral" wallet, create the agent node
That's it! Your NULS agent node is created and running. Now you need to convince other NULS stakers to join your node until you reach 200k in staking (220k total, including your initial collateral). Get to work!