🔌 Installation

1️⃣ Installation packages and dependencies

sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y

➡️ Go Installation

cd $HOME
VER="1.24.1"
wget "https://golang.org/dl/go$VER.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$VER.linux-amd64.tar.gz"
rm "go$VER.linux-amd64.tar.gz"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin

2️⃣ Install node

Reminder

You can change the port and wallet name.
echo "export LUMERA_PORT="20"" >> $HOME/.bash_profile
echo "export LUMERA_WALLET="mictowallet"" >> $HOME/.bash_profile
source $HOME/.bash_profile
mkdir -p $HOME/.lumera/cosmovisor/upgrades/v1.9.1/bin
cd $HOME && curl -LO https://github.com/LumeraProtocol/lumera/releases/download/v1.9.1/lumera_v1.9.1_linux_amd64.tar.gz && tar -xvf lumera_v1.9.1_linux_amd64.tar.gz && rm lumera_v1.9.1_linux_amd64.tar.gz install.sh && chmod +x lumerad
sudo mv $HOME/lumerad $HOME/.lumera/cosmovisor/upgrades/v1.9.1/bin/lumerad
sudo ln -sfn $HOME/.lumera/cosmovisor/upgrades/v1.9.1 $HOME/.lumera/cosmovisor/current
sudo ln -sfn $HOME/.lumera/cosmovisor/current/bin/lumerad /usr/local/bin/lumerad
go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]
cd
mkdir -p $HOME/.lumera/lib
mv $HOME/libwasmvm.x86_64.so $HOME/.lumera/lib/libwasmvm.x86_64.so
echo "alias lumerad='LD_LIBRARY_PATH=$HOME/.lumera/lib:\$LD_LIBRARY_PATH /usr/local/bin/lumerad'" >> ~/.bashrc
source ~/.bashrc

➡️ Create a service

sudo tee /etc/systemd/system/lumerad.service > /dev/null <<EOF
[Unit]
Description=lumera node service
After=network-online.target

[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.lumera"
Environment="DAEMON_NAME=lumerad"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.lumera/cosmovisor/current/bin"
Environment="LD_LIBRARY_PATH=$HOME/.lumera/lib:$LD_LIBRARY_PATH"

[Install]
WantedBy=multi-user.target
EOF

➡️ Let’s activate it

sudo systemctl daemon-reload
sudo systemctl enable lumerad

➡️ Initialize the node

lumerad config set client chain-id lumera-testnet-2
lumerad config set client keyring-backend test
lumerad config set client node tcp://localhost:${LUMERA_PORT}657
lumerad init "Moniker-Name" --chain-id lumera-testnet-2

➡️ Genesis & addrbook and claims.cvs

wget -O $HOME/.lumera/config/genesis.json LINK
wget -O $HOME/.lumera/config/addrbook.json LINK
curl -o ~/.lumera/config/claims.csv https://raw.githubusercontent.com/LumeraProtocol/lumera-networks/refs/heads/master/testnet-2/claims.csv

➡️ Port

sed -i.bak -e "s%:26658%:${LUMERA_PORT}658%g;
s%:26657%:${LUMERA_PORT}657%g;
s%:6060%:${LUMERA_PORT}060%g;
s%:26656%:${LUMERA_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${LUMERA_PORT}656\"%;
s%:26660%:${LUMERA_PORT}660%g" $HOME/.lumera/config/config.toml
sed -i.bak -e "s%:1317%:${LUMERA_PORT}317%g;
s%:8080%:${LUMERA_PORT}080%g;
s%:9090%:${LUMERA_PORT}090%g;
s%:9091%:${LUMERA_PORT}091%g;
s%:8545%:${LUMERA_PORT}545%g;
s%:8546%:${LUMERA_PORT}546%g;
s%:6065%:${LUMERA_PORT}065%g" $HOME/.lumera/config/app.toml

➡️ Peers and Seeds

SEEDS=""
PEERS="[email protected]:26656,[email protected]:52656,[email protected]:30756,[email protected]:13656,[email protected]:26656,[email protected]:26656,[email protected]:30756,[email protected]:16656,[email protected]:26656,[email protected]:20656,[email protected]:11656,[email protected]:26656,[email protected]:13656,[email protected]:16656,[email protected]:26656,[email protected]:26656,[email protected]:13656,[email protected]:28656,[email protected]:21956,[email protected]:26656,[email protected]:26656,[email protected]:30656,[email protected]:30656,[email protected]:40656,[email protected]:26656,[email protected]:13656,[email protected]:26656,[email protected]:26656,[email protected]:30756,[email protected]:10656,[email protected]:17656,[email protected]:13656,[email protected]:13656,[email protected]:17656,[email protected]:13656,[email protected]:13656,[email protected]:18656,[email protected]:29656,[email protected]:26656,[email protected]:13656,[email protected]:13656,[email protected]:13656,[email protected]:28656,[email protected]:30756,[email protected]:28656,[email protected]:28656,[email protected]:17656,[email protected]:28656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.lumera/config/config.toml

➡️ Pruning

sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.lumera/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.lumera/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"10\"/" $HOME/.lumera/config/app.toml

➡️ Indexer

sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.lumera/config/config.toml

➡️ Gas Settings

sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0ulume"|g' $HOME/.lumera/config/app.toml

➡️ Prometheus

sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.lumera/config/config.toml

➡️ Starter Snap

Check snapshot height
echo "Lumera Snapshot Height: $(curl -s https://files.mictonode.com/lumera/snapshot/block-height.txt)"
lumerad tendermint unsafe-reset-all --home $HOME/.lumera --keep-addr-book

SNAPSHOT_URL="https://files.mictonode.com/lumera/snapshot/"
LATEST_SNAPSHOT=$(curl -s $SNAPSHOT_URL | grep -oP 'lumera_\d+\.tar\.lz4' | sort -t_ -k2 -n | tail -n 1)

if [ -n "$LATEST_SNAPSHOT" ]; then
  FULL_URL="https://snapshots.polkachu.com/testnet-snapshots/lumera/lumera_2947734.tar.lz4"
  if curl -s --head "$FULL_URL" | head -n 1 | grep "200" > /dev/null; then
    curl "$FULL_URL" | lz4 -dc - | tar -xf - -C $HOME/.lumera
  else
    echo "Snapshot URL not accessible"
  fi
else
  echo "No snapshot found"
fi

➡️ Let’s get started

sudo systemctl restart lumerad
journalctl -fu lumerad -o cat

➡️ Log Command

sudo journalctl -fu lumerad -o cat

➡️ Create wallet

lumerad keys add $LUMERA_WALLET

➡️ Import wallet

lumerad keys add $LUMERA_WALLET --recover

➡️ Faucet

Faucet 1

Faucet 2

➡️ Create Validator

rm -rf $HOME/validator.json
cat > $HOME/validator.json << EOF
{
	"pubkey": $(lumerad tendermint show-validator),
	"amount": "1000000ulume",
	"moniker": "Moniker-Name",
	"identity": "optional identity signature (ex. UPort or Keybase)",
	"website": "validator's (optional) website",
	"security": "validator's (optional) security contact email",
	"details": "validator's (optional) details",
	"commission-rate": "0.05",
	"commission-max-rate": "0.2",
	"commission-max-change-rate": "0.01",
	"min-self-delegation": "1"
}
EOF
lumerad tx staking create-validator $HOME/validator.json --chain-id=lumera-testnet-2 --gas-prices=0.025ulume --gas-adjustment=1.5 --gas=auto --from=$LUMERA_WALLET -y

➡️ Delegate to Yourself

lumerad tx staking delegate $(lumerad keys show $LUMERA_WALLET --bech val -a) 1000000ulume --from $LUMERA_WALLET --chain-id lumera-testnet-2 --gas-prices=0.025ulume --gas-adjustment=1.5 --gas=auto -y 

➡️ Edit Validator

lumerad tx staking edit-validator \
--chain-id lumera-testnet-2 \
--commission-rate 0.05 \
--new-moniker "validator-name" \
--identity "" \
--details "" \
--website "" \
--security-contact "" \
--from "$LUMERA_WALLET" \
--node http://localhost:${LUMERA_PORT}657 \
--gas-prices=0.025ulume \
--gas-adjustment=1.5 \
--gas=auto
-y

➡️ Complete deletion

cd $HOME
sudo systemctl stop lumerad
sudo systemctl disable lumerad
sudo rm -rf /etc/systemd/system/lumerad.service
sudo systemctl daemon-reload
sudo rm -f /usr/local/bin/lumerad
sudo rm -f $(which lumerad)
sudo rm -rf $HOME/.lumera
sed -i "/LUMERA_PORT_/d" $HOME/.bash_profile
sed -i "/LUMERA_WALLET_/d" $HOME/.bash_profile

➡️ Block check

local_height=$(curl -s localhost:${LUMERA_PORT}657/status | jq -r .result.sync_info.latest_block_height); network_height=$(curl -s https://rpc.testnet.lumera.io/status | jq -r .result.sync_info.latest_block_height); blocks_left=$((network_height - local_height)); echo "Your node height: $local_height"; echo "Network height: $network_height"; echo "Blocks left: $blocks_left"
  • Your node height - the current block of your node
  • Network height - the last block of the network
  • Blocks left - how many blocks your node has left to sync.