Empeiria Empeiria - Testnet
Chain ID: empe-testnet-2 Block Height: Loading...
RPC Status:

Network Overview

Empeiria

Empeiria is the first End-to-End Verifiable Data Infrastructure (EVDI). It enables seamless web3 adoption through one-click deployment, empowering organizations with the data of the future.

https://rpc-empeiria-t.sychonix.com

https://api-empeiria-t.sychonix.com

Installation

  • Install Dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev aria2 -y
  • Install Go
VER="1.21.6"
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go$VER.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version
- Install Binary
cd $HOME && mkdir -p go/bin/
curl -LO 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
sudo mv emped ~/go/bin
  • Initialize The Node
emped config node tcp://localhost:11157
emped config keyring-backend os
emped config chain-id empe-testnet-2
emped init "YourName" --chain-id empe-testnet-2
  • Download Genesis & Addrbook
curl -Ls https://snapshot.sychonix.com/testnet/empeiria/genesis.json > $HOME/.empe-chain/config/genesis.json
curl -Ls https://snapshot.sychonix.com/testnet/empeiria/addrbook.json > $HOME/.empe-chain/config/addrbook.json
  • Configure Seeds and Peers
sed -i -e 's|^seeds *=.*|seeds = "20ca5fc4882e6f975ad02d106da8af9c4a5ac6de@empeiria-testnet-seed.itrocket.net:28656' $HOME/.empe-chain/config/config.toml
PEERS="$(curl -sS https://rpc-empeiria-t.sychonix.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.empe-chain/config/config.toml
  • Update Port Configuration
sed -i -e "s%:1317%:11117%; s%:8080%:11180%; s%:9090%:11190%; s%:9091%:11191%; s%:8545%:11145%; s%:8546%:11146%; s%:6065%:11165%" $HOME/.empe-chain/config/app.toml
sed -i -e "s%:26658%:11158%; s%:26657%:11157%; s%:6060%:11160%; s%:26656%:11156%; s%:26660%:11161%" $HOME/.empe-chain/config/config.toml
  • Customize Pruning
sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
  $HOME/.empe-chain/config/app.toml
  • Set Minimum Gas Price, Enable Prometheus, and Disable the Indexer
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0001uempe\"|" $HOME/.empe-chain/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.empe-chain/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.empe-chain/config/config.toml
  • Create Service File
sudo tee /etc/systemd/system/emped.service > /dev/null <<EOF
[Unit]
Description=empeiria testnet node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which emped) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
  • Download Current Snapshot
curl "https://snapshot.sychonix.com/testnet/empeiria/empeiria-snapshot.tar.lz4" | lz4 -dc - | tar -xf - -C "$HOME/.empe-chain"
  • Enable the Service and Start the Node
sudo systemctl daemon-reload
sudo systemctl enable emped.service
sudo systemctl restart emped.service && sudo journalctl -u emped.service -f --no-hostname -o cat

Upgrade

No chain upgrades scheduled yet.

Peers

PEERS="$(curl -sS https://rpc-empeiria-t.sychonix.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.empe-chain/config/config.toml

Snapshot

Height: Loading... | Last updated: Loading... | Size: Loading...
  • Install dependencies, if needed
sudo apt update && sudo apt install aria2
  • Stop Service
sudo systemctl stop emped
  • Back up priv_validator_state.json
cp $HOME/.empe-chain/data/priv_validator_state.json $HOME/.empe-chain/priv_validator_state.json.backup
  • Reset the data
emped tendermint unsafe-reset-all --home $HOME/.empe-chain --keep-addr-book
  • Download Snapshot
aria2c -x 16 -s 16 -o empeiria-snapshot.tar.lz4 https://snapshot.sychonix.com/testnet/empeiria/empeiria-snapshot.tar.lz4
lz4 -dc empeiria-snapshot.tar.lz4 | tar -xf - -C $HOME/.empe-chain
rm -v empeiria-snapshot.tar.lz4
  • Restore Backup and Restart Service
mv $HOME/.empe-chain/priv_validator_state.json.backup $HOME/.empe-chain/data/priv_validator_state.json
sudo systemctl restart emped && sudo journalctl -u emped -f -o cat

Addrbook

curl -Ls https://snapshot.sychonix.com/testnet/empeiria/addrbook.json > $HOME/.emped/config/addrbook.json

Genesis

curl -Ls https://snapshot.sychonix.com/testnet/empeiria/addrbook.json > $HOME/.emped/config/addrbook.json

API

api-empeiria-t.sychonix.com

RPC

rpc-empeiria-t.sychonix.com

CLI Cheatsheet

Wallet Management

emped keys add 

emped keys add  --recover

emped keys list 

emped keys delete 

emped keys export 

emped keys import .backup

emped q bank balances $(emped keys show  -a)

Validator Management

Moniker

Identity

Details

Website

Security Contact

Amount

emped tx staking create-validator \
--amount=1000000uempe \
--pubkey=$(emped tendermint show-validator) \
--moniker="" \
--identity="" \
--details="" \
--website="" \
--security-contact= \
--chain-id=empe-testnet-2 \
--commission-rate=0.05 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--gas-prices 0.0001uempe \
--gas "auto" \
--gas-adjustment "1.5" \
--from wallet \
-y

emped tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--website="" \
--chain-id=empe-testnet-2 \
--commission-rate=0.07 \
--from wallet \
--gas=auto \
--gas-prices 0.0001uempe \
-y

emped tx slashing unjail --from wallet --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5  

emped query slashing signing-info $(emped tendermint show-validator)

emped q staking validator $(emped keys show wallet --bech val -a)

emped q bank denom-metadata -oj | jq

emped status 2>&1 | jq -r '.SyncInfo.catching_up // .sync_info.catching_up'

emped status 2>&1 | jq -r '.SyncInfo.latest_block_height // .sync_info.latest_block_height'

Token Management

emped tx distribution withdraw-all-rewards --from wallet --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --gas-prices 0.0001uempe -y 

emped tx distribution withdraw-rewards $(emped keys show wallet --bech val -a) --commission --from wallet --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --gas-prices 0.0001uempe -y 

emped tx staking delegate $(emped keys show wallet --bech val -a) 1000000uempe --from wallet --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --gas-prices 0.0001uempe -y 

emped tx staking redelegate $(emped keys show wallet --bech val -a)  1000000uempe --from wallet --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --gas-prices 0.0001uempe -y

emped tx staking delegate  1000000uempe --from  --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --gas-prices 0.0001uempe -y 

emped tx staking unbond $(emped keys show wallet --bech val -a) 1000000uempe --from wallet --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --gas-prices 0.0001uempe -y

emped tx bank send wallet  1000000uempe --from wallet --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --gas-prices 0.0001uempe -y

Service Management

sudo systemctl daemon-reload

sudo systemctl enable emped

sudo systemctl disable emped

sudo systemctl start emped

sudo systemctl stop emped

sudo systemctl restart emped

sudo systemctl status emped

sudo journalctl -u emped -f --no-hostname -o cat

CUSTOM_PORT=
sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}660\"%" $HOME/.empe-chain/config/config.toml
sed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${CUSTOM_PORT}317\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${CUSTOM_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${CUSTOM_PORT}091\"%" $HOME/.empe-chain/config/app.toml

cd $HOME && sudo systemctl stop emped && sudo systemctl disable emped && sudo rm /etc/systemd/system/emped.service && sudo systemctl daemon-reload && sudo rm -rf $(which emped) && sudo rm -rf $HOME/.empe-chain && sudo rm -rf $(which emped)