πŸ”Œ Installation

πŸ’» Hardware Requirements

ComponentsMinimum Requirements
OPERATING SYSTEMUbuntu 22.04
CPU6
RAM32 GB
STORAGE240 GB

1️⃣ Installation packeges 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.22.6"
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

cd $HOME
mkdir -p $HOME/.empe-chain/cosmovisor/upgrades/v0.2.2/bin
wget https://github.com/empe-io/empe-chain-releases/raw/master/v0.2.2/emped_v0.2.2_linux_amd64.tar.gz
tar -xvf emped_v0.2.2_linux_amd64.tar.gz
rm -rf emped_v0.2.2_linux_amd64.tar.gz
chmod +x emped
mv $HOME/emped $HOME/.empe-chain/cosmovisor/upgrades/v0.2.2/bin
sudo ln -s $HOME/.empe-chain/cosmovisor/upgrades/v0.2.2 $HOME/.empe-chain/cosmovisor/current -f
sudo ln -s $HOME/.empe-chain/cosmovisor/current/bin/emped /usr/local/bin/emped -f
go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]

➑️ Create a service

sudo tee /etc/systemd/system/emped.service > /dev/null << EOF
[Unit]
Description=empe-chain 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}/.empe-chain"
Environment="DAEMON_NAME=emped"
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/.emped/cosmovisor/current/bin"

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable emped

➑️ Initialize the node

emped init "change-moniker" --chain-id empe-testnet-2

➑️ Genesis & Addrbook

wget -O $HOME/.empe-chain/config/genesis.json "https://raw.githubusercontent.com/empe-io/empe-chains/master/testnet-2/genesis.json"
wget -O $HOME/.empe-chain/config/addrbook.json "https://raw.githubusercontent.com/MictoNode/empe-chain/main/addrbook.json"

➑️ Gas Settings

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0001uempe\"/;" ~/.empe-chain/config/app.toml

➑️ Pruning

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

➑️ Starter Snap (Thx Itrocket)

emped tendermint unsafe-reset-all --home $HOME/.empe-chain

SNAPSHOT_URL="https://server-5.itrocket.net/testnet/empeiria/"
LATEST_SNAPSHOT=$(curl -s $SNAPSHOT_URL | grep -oP 'empeiria_\d{4}-\d{2}-\d{2}_\d+_snap\.tar\.lz4' | sort | tail -n 1)

if [ -n "$LATEST_SNAPSHOT" ]; then
  FULL_URL="${SNAPSHOT_URL}${LATEST_SNAPSHOT}"
  if curl -s --head "$FULL_URL" | head -n 1 | grep "200" > /dev/null; then
    curl "$FULL_URL" | lz4 -dc - | tar -xf - -C $HOME/.empe-chain
  else
    echo "Snapshot URL not accessible"
  fi
else
  echo "No snapshot found"
fi

➑️ Port

You can replace 111 with anything you want.

echo "export CUSTOM_PORT="111"" >> $HOME/.bash_profile
source $HOME/.bash_profile
sed -i.bak -e "s%:1317%:${CUSTOM_PORT}17%g;
s%:8080%:${CUSTOM_PORT}80%g;
s%:9090%:${CUSTOM_PORT}90%g;
s%:9091%:${CUSTOM_PORT}91%g;
s%:8545%:${CUSTOM_PORT}45%g;
s%:8546%:${CUSTOM_PORT}46%g;
s%:6065%:${CUSTOM_PORT}65%g" $HOME/.empe-chain/config/app.toml
sed -i.bak -e "s%:26658%:${CUSTOM_PORT}58%g;
s%:26657%:${CUSTOM_PORT}57%g;
s%:6060%:${CUSTOM_PORT}60%g;
s%:26656%:${CUSTOM_PORT}56%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${CUSTOM_PORT}56\"%;
s%:26660%:${CUSTOM_PORT}60%g" $HOME/.empe-chain/config/config.toml
sed -i -e "s|^node *=.*|node = \"tcp://localhost:${CUSTOM_PORT}57\"|" $HOME/.empe-chain/config/client.toml
sed -i -e '/^chain-id = /c\chain-id = "empe-testnet-2"' $HOME/.empe-chain/config/client.toml
sed -i -e '/^keyring-backend = /c\keyring-backend = "test"' $HOME/.empe-chain/config/client.toml

➑️ Peers and Seeds

SEEDS=""
PEERS="[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:43656,[email protected]:26656,[email protected]:43656,[email protected]:29056,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:43656,[email protected]:26656,[email protected]:29056,[email protected]:43656,[email protected]:43656,[email protected]:11756,[email protected]:23656,[email protected]:43656,[email protected]:43656,[email protected]:43656,[email protected]:29056,[email protected]:25656,[email protected]:26656,[email protected]:16610"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.empe-chain/config/config.toml

➑️ Let’s get started

sudo systemctl restart emped
journalctl -fu emped -o cat

➑️ Create wallet

emped keys add wallet-name

➑️ Recover wallet

emped keys add wallet-name --recover

➑️ Faucet

Faucet

➑️ Create Validator

cd $HOME
emped tx staking create-validator \
  --amount=1000000uempe \
  --pubkey=$(emped tendermint show-validator) \
  --moniker "moniker" \
  --chain-id=empe-testnet-2 \
  --identity "" \
  --details "" \
  --website "" \
  --commission-max-change-rate=0.01 \
  --commission-max-rate=1.0 \
  --commission-rate=0.05 \
  --min-self-delegation="1" \
  --fees=500uempe \
  --from=wallet-name \
  --node=http://localhost:(whatever you typed in custom_port)57
  -y

➑️ Delegation

emped tx staking delegate valoper-address amount000000uempe \
--chain-id empe-testnet-2 \
--from "wallet-name" \
--fees 500uempe \
--node=http://localhost:(whatever you typed in custom_port)57

➑️ Complete deletion

cd $HOME
sudo systemctl stop emped
sudo systemctl disable emped
sudo rm -rf /etc/systemd/system/emped.service
sudo systemctl daemon-reload
sudo rm -f /usr/local/bin/emped
sudo rm -f $(which emped)
sudo rm -rf $HOME/.empe-chain
sed -i "/EMPE_/d" $HOME/.bash_profile

➑️ Block check

local_height=$(curl -s localhost:(whatever you typed in custom_port)</a>57/status | jq -r .result.sync_info.latest_block_height); network_height=$(curl -s https://empe-testnet-rpc.mictonode.com/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.