π Installation
π» Hardware Requirements
Components | Minimum Requirements |
---|---|
OPERATING SYSTEM | Ubuntu 22.04 |
CPU | 6 |
RAM | 32 GB |
STORAGE | 240 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
β‘οΈ Create Validator
Reminder
You canβt create a validator without Sync. You must have to catch the latest block.
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.
On This Page
- π» Hardware Requirements
- 1οΈβ£ Installation packeges and dependencies
- β‘οΈ Go Installation
- 2οΈβ£ Install node
- β‘οΈ Create a service
- β‘οΈ Initialize the node
- β‘οΈ Genesis & Addrbook
- β‘οΈ Gas Settings
- β‘οΈ Pruning
- β‘οΈ Starter Snap (Thx Itrocket)
- β‘οΈ Port
- β‘οΈ Peers and Seeds
- β‘οΈ Letβs get started
- β‘οΈ Create wallet
- β‘οΈ Recover wallet
- β‘οΈ Faucet
- β‘οΈ Create Validator
- β‘οΈ Delegation
- β‘οΈ Complete deletion
- β‘οΈ Block check