2. Installing & updating

Node installation

After preparing the user permissions and script configurations, the actual node installation can begin.

cd ~/elrond-go-scripts-mainnet
./script.sh install
  • When asked, indicate the number of nodes you want to run, i.e. 1

  • When asked, indicate the name for your validator, i.e. Valar

Manage your keys

A file calledvalidatorKey.pem will be created in $HOME/elrond-nodes/node-0/config/

Create a new folder "VALIDATOR_KEYS" to serve as local backup when updating:

cd ~

Copy the key - in ZIP form - to the $HOME/VALIDATOR_KEYS/ folder . This is important for your node to be able to restart correctly after an upgrade.

cd $HOME/elrond-nodes/node-0/config
zip node-0.zip validatorKey.pem
mv node-0.zip $HOME/VALIDATOR_KEYS/

Repeat the above for all your “n” nodes. When complete, please refer to our Key management section for instructions about how to properly backup and protect your keys.

Start the node(s)

cd ~/elrond-go-scripts-mainnet
./script.sh start

Start the node visual interface

Once the node has started, you can check how it’s doing, using the TermUI interface. Navigate to your $HOME/elrond-utils folder and start the TermUI , one for each of your nodes:

cd $HOME/elrond-utils
./termui -address localhost:8080

Your first node is called node-0 and it its REST API will run on port 8080 by default. The next node is node-1 on port 8081, and so on.

Update your node

Run the following command to upgrade your node with the latest GitHub release.

./script.sh upgrade

Those are the basic steps. Please carefully read the on-screen instructions, refer to the scripts readme file and make sure to ask any questions in the Elrond Validators chat.

Mandatory: Backup your keys

Your private keys are needed to run your node. Losing them means losing control of your node. A 3rd party gaining access to them could result in lost funds.

Find them in $HOME/elrond-nodes/node-0/config [be mindful of your “n” nodes]

Create a safe backup for them on storage outside of the server running your node(s).