Docs

Docs

  • Develop
  • Validate
  • Integrate
  • Learn

›Install a Mainnet Node

Welcome to Elrond

  • Welcome to Elrond

Technology

  • Architecture Overview
  • Glossary
  • Entities
  • Chronology
  • Secure Proof of Stake
  • Adaptive State Sharding
  • The Elrond WASM VM
  • Cross Shard Transactions

Wallet

  • Wallets - Overview
  • Web Wallet
  • Maiar Web Wallet Extension
  • Webhooks
  • Ledger

Tokens

  • Native Tokens
  • ESDT tokens
  • NFT tokens

Validators

  • Validators - Overview
  • System Requirements
  • Install a Mainnet Node

    • Scripts & User config
    • Installing a Validator Node
    • Optional Configurations
    • How to use the Docker Image

    Install a Testnet/Devnet Node

    • Scripts & User config
    • Installing a Validator Node
    • Manage a validator node
    • How to use the Docker Image

    Manage your keys

    • Validator Keys
    • Wallet Keys
    • Protecting your keys

    Staking, Unstaking, Unjailing

    • Staking, unstaking and unjailing
    • Staking
    • Unjailing
    • The Staking Smart Contract
  • The Delegation Manager
  • Convert An Existing Validator Into A Staking Pool
  • Merging A Validator Into An Existing Delegation Smart Contract
  • Rating
  • Elrond Node upgrades
  • Node redundancy
  • Import DB
  • Node CLI
  • Node Databases
  • Useful Links & Tools
  • FAQs

Developers

  • Developers - Overview
  • Tutorials

    • Build a dApp in 15 minutes
    • Build a Microservice for your dApp
    • The Crowdfunding Smart Contract (part 1)
    • The Crowdfunding Smart Contract (part 2)
    • The Counter Smart Contract
    • Custom Wallet Connect

    Signing Transactions

    • Signing Transactions
    • Tools for signing
    • Signing programmatically

    Gas and Fees

    • Overview
    • EGLD transfers (move balance transactions)
    • System Smart Contracts
    • User-defined Smart Contracts

    Developer reference

    • The Elrond Serialization Format
    • Smart contract annotations
    • Smart contract modules
    • Smart contract to smart contract calls
    • Smart Contract Developer Best Practices
    • Code Metadata
    • Smart Contract API Functions
    • Storage Mappers
    • Rust Testing Framework
    • Rust Testing Framework Functions Reference
    • Rust Smart Contract Debugging
    • Random Numbers in Smart Contracts

    Developers Best Practices

    • Basics
    • BigUint Operations
    • The dynamic allocation problem
    • Multi-values

    Mandos tests reference

    • Mandos Overview
    • Mandos Structure
    • Mandos Simple Values
    • Mandos Complex Values
    • Embedding Mandos code in Go
  • Constants
  • Built-In Functions
  • Account storage
  • Setup a Local Testnet
  • Set up a Local Testnet (advanced)
  • Creating Wallets

SDK and Tools

  • SDKs and Tools - Overview
  • REST API

    • REST API overview
    • api.elrond.com
    • Gateway overview
    • Addresses
    • Transactions
    • Network
    • Nodes
    • Blocks
    • Virtual Machine
    • Versions and Changelog
  • Proxy
  • Elasticsearch
  • erdpy

    • erdpy
    • Installing erdpy
    • Configuring erdpy
    • erdpy CLI
    • Deriving the Wallet PEM file
    • Sending bulk transactions
    • Writing and running erdpy scripts
    • Smart contract interactions

    erdjs

    • erdjs
    • Cookbook
    • Extending erdjs
    • Writing and testing interactions
    • Migration guides
    • Signing Providers for dApps
  • erdgo
  • erdcpp
  • erdjava
  • erdkotlin
  • erdwalletjs-cli

Integrators

  • Integrators - Overview
  • EGLD integration guide
  • ESDT tokens integration guide
  • Observing Squad
  • Accounts Management
  • Creating Transactions
  • Querying the Blockchain

Installing a Validator Node

An Elrond node requires a host (computer) with the aforementioned specifications, with the OS - preferably Ubuntu 18.04 - installed. First you will deploy the Elrond scripts, tune its parameters and ensure proper user permissions. Then you will install the node, backup its private keys and start it. Further steps include optional configurations, such as setting up monitoring.

Let's dig in.

Install your node(s)

After preparing the user permissions, the script configurations and the keys, the actual node installation can begin. The Validator script is a multi-purpose tool for managing your node. For installation use1 - install.

 ~/elrond-go-scripts-mainnet/script.sh
 1) install
 2) observing_squad
 3) upgrade
 4) upgrade_proxy
 5) upgrade_squad
 6) remove_db
 7) start
 8) stop
 9) cleanup
 10) github_pull
 11) get_logs
 12) quit
 Please select an action:1
  • 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
  • Quit the menu without starting (we need keys first) by using 12 - quit

Prepare your keys

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

cd ~
mkdir -p ~/VALIDATOR_KEYS

Generate a certificate file containing your Validator key by running the keygenerator :

./elrond-utils/keygenerator

Copy the generated validatorKey.pem file to the config folder of your node(s), repeat for each node.

cp validatorKey.pem ~/elrond-nodes/node-0/config/
tip

Each node needs its unique validatorKey.pem file

Then copy the validatorKey.pem file - in ZIP form - to the $HOME/VALIDATOR_KEYS/ folder . This is important for your node to be able to restart correctly after an upgrade.

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)

~/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
tip

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

Update your node(s)

Upgrade your node by running the script and selecting options:

  • 10 - github_pull downloads the latest version of the scripts
  • 3 - upgrade
  • 7 - start
  • 12 - quit
~/elrond-go-scripts-mainnet/script.sh

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]

important

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

← Scripts & User configOptional Configurations →
  • Install your node(s)
  • Update your node(s)
  • Mandatory: Backup your keys
Made withby the Elrond team.
GithubChat
Main siteWalletExplorerBridgeDocsGrowthMaiarMaiar Exchange