Installation

Elys Mainnet Installation

Setup Server

# Update Packages and Install Prerequisites
sudo apt update && apt upgrade -y
sudo apt install curl git jq lz4 build-essential unzip fail2ban ufw -y
# Set Firewall
sudo ufw default allow outgoing
sudo ufw default deny incoming
sudo ufw allow ssh
sudo ufw allow 9100
# Enable Firewall
sudo ufw enable

Install Elys Daemon

# Install elys through repository
cd $HOME
rm -rf elys
git clone https://github.com/elys-network/elys.git elys
cd elys
git checkout v2.3.0
make install

Setting Up Your Node

# config
elysd config chain-id elys-1
elysd config keyring-backend file

# init, make sure to change your NodeName
elysd init NodeName --chain-id elys-1

# Add Genesis File and Addrbook
curl -Ls https://snapshots.indonode.net/elys/genesis.json > $HOME/.elys/config/genesis.json
curl -Ls https://snapshots.indonode.net/elys/addrbook.json > $HOME/.elys/config/addrbook.json

# Configure Seeds and Peers
PEERS="[email protected]:6000,[email protected]:36442,[email protected]:30856,[email protected]:26656,[email protected]:56656,[email protected]:22056,[email protected]:22156,[email protected]:32656,[email protected]:20656,[email protected]:26656,[email protected]:26156,[email protected]:26656,[email protected]:22056,[email protected]:22056,[email protected]:22056,[email protected]:32556,[email protected]:26656,[email protected]:15356,[email protected]:31126,[email protected]:26656,[email protected]:10056,[email protected]:26656,[email protected]:22056,[email protected]:33656,[email protected]:31056,[email protected]:22056,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:22056,[email protected]:22056,[email protected]:22056,[email protected]:32556,[email protected]:6000,[email protected]:46656,[email protected]:41656,[email protected]:36656"
sed -i -e "s|^persistent_peers *=.*|persistent_peers = \"$PEERS\"|" $HOME/.elys/config/config.toml

Setting Pruning, Minimum Gas Prices and Indexer (Optional)

sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
$HOME/.elys/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.elys/config/config.toml
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0003uelys\"|" $HOME/.elys/config/app.toml

Setup Cosmovisor

// install cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest

// make genesis directory
mkdir -p ~/.elys/cosmovisor/genesis/bin
// make upgrades directory
mkdir -p ~/.elys/cosmovisor/upgrades

// get elys daemon location
which elysd
// you should now getting the elysd location, for example like: ~/go/bin/elysd
// copy to genesis directory
cp YourBinaryLocation ~/.elys/cosmovisor/genesis/bin/ 

Running as services with cosmovisor

// Get your cosmovisor binary location
which cosmovisor
// you should now getting the cosmovisor location, for example like: ~/go/bin/cosmovisor
// save this cosmovisor binary location

// create services
sudo nano /etc/systemd/system/elysd.service
elysd.service
    [Unit] 
    Description=Elys Network node 
    After=network.target

    [Service] 
    Type=simple 
    Restart=on-failure 
    RestartSec=5 
    User=YOUR_USERNAME 
    ExecStart=YOUR_COSMOVISOR_BINARY_LOCATION run start
    LimitNOFILE=65535
    Environment="DAEMON_NAME=elysd"
    Environment="DAEMON_HOME=YOUR_DATA_FOLDER/.elys"
    Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
    Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
    Environment="UNSAFE_SKIP_BACKUP=true"

    [Install] 
    WantedBy=multi-user.target

**save the file, make sure to change YOUR_USERNAME, YOUR_COSMOVISOR_BINARY_LOCATION, YOUR_DATA_FOLDER.

// Reload Daemon
sudo systemctl daemon-reload
// Enable Services
systemctl enable elysd.service
// To check logs, use: journalctl -fu elysdd

Using Snapshots

sudo apt update
sudo apt-get install snapd lz4 -y

The latest snapshot : elys_snapshot_(todaydate).tar.lz4

for example filename: elys_snapshot_2025-04-17.tar.lz4

// Download
curl -L https://green.codeblocklabs.com/mainnet/elys/elys_snapshot_(todaydate).tar.lz4 | tar -Ilz4 -xf - -C $HOME/.elys

Useful Tips Check Version: elysd version --long

CHECK STATUS BINARY: systemctl status elysd CHECK RUNNING LOGS: journalctl -fu elysd -o cat CHECK LOCAL STATUS: curl -s localhost:26657/status | jq .result.sync_info

Last updated