Testnet
Empeiria
Installation Guide
Node CLI
State Sync
Snapshot
Public Endpoint
Custom Explorers
Decentralization Maps
Installation Guide
Installation Guide
Node CLI
State Sync
Snapshot
Public Endpoint
Custom Explorers
Decentralization Maps
State Sync
sudo systemctl stop emped
cp $HOME/.empe-chain/data/priv_validator_state.json $HOME/.empe-chain/priv_validator_state.json.backup
emped tendermint unsafe-reset-all --home $HOME/.empe-chain --keep-addr-book
SNAP_RPC="https://testnet-empeiria-rpc.konsortech.xyz:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
peers="70d0d06e3542ef3c43bb76052ead755d456fbe81@testnet-empeiria.konsortech.xyz:16657:"
sed -i 's|^persistent_peers *=.*|persistent_peers = "'$peers'"|' $HOME/.empe-chain/config/config.toml
sed -i -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.empe-chain/config/config.toml
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 --no-hostname -o cat
Empeiria Decentralization Maps
How To Install Full Node Empeiria Testnet
Setting up vars
Your Nodename (validator) that will shows in explorer
NODENAME=<Your_Nodename_Moniker>
Save variables to system
echo "export NODENAME=$NODENAME" >> $HOME/.bash_profile
if [ ! $WALLET ]; then
echo "export WALLET=wallet" >> $HOME/.bash_profile
fi
echo "export EMPEIRIA_CHAIN_ID=empe-testnet-2" >> $HOME/.bash_profile
source $HOME/.bash_profile
Update packages
sudo apt update && sudo apt upgrade -y
Install dependencies
sudo apt install curl build-essential git wget jq make gcc tmux net-tools ccze -y
Install go
if ! [ -x "$(command -v go)" ]; then
ver="1.22.4"
cd $HOME
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"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
source ~/.bash_profile
fi
Download and build binaries
cd $HOME
curl -LO https://github.com/empe-io/empe-chain-releases/raw/master/v0.2.2/emped_v0.2.2_linux_amd64.tar.gz
tar -xzvf emped_v0.2.2_linux_amd64.tar.gz
mv emped /root/go/bin/emped
Init app
emped init $NODENAME --chain-id $EMPEIRIA_CHAIN_ID
Download configuration
cd $HOME
wget -O $HOME/.empe-chain/config/genesis.json https://snap2.konsortech.xyz/empeiria/genesis.json
wget -O $HOME/.empe-chain/config/addrbook.json https://snap2.konsortech.xyz/empeiria/addrbook.json
Disable indexing
indexer="null"
sed -i -e "s/^indexer *=.*/indexer = \"$indexer\"/" $HOME/.empe-chain/config/config.toml
Config pruning
sed -i 's|pruning = "default"|pruning = "custom"|g' $HOME/.empe-chain/config/app.toml
sed -i 's|pruning-keep-recent = "0"|pruning-keep-recent = "100"|g' $HOME/.empe-chain/config/app.toml
sed -i 's|pruning-interval = "0"|pruning-interval = "19"|g' $HOME/.empe-chain/config/app.toml
Set minimum gas price
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.001uempe"|g' $HOME/.empe-chain/config/app.toml
Create service
sudo tee /etc/systemd/system/emped.service > /dev/null << EOF
[Unit]
Description=Empeiria Node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which emped) start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Register and start service
sudo systemctl daemon-reload
sudo systemctl enable emped
sudo systemctl restart emped && sudo journalctl -u emped -f -o cat
Guide for Node CLI
Create wallet
To create new wallet you can use command below. Don’t forget to save the mnemonic
emped keys add $WALLET
To recover your wallet using seed phrase
emped keys add $WALLET --recover
Show your wallet list
emped keys list
Save wallet info
Add wallet and validator address into variables
EMPEIRIA_WALLET_ADDRESS=$(emped keys show $WALLET -a)
EMPEIRIA_VALOPER_ADDRESS=$(emped keys show $WALLET --bech val -a)
echo 'export EMPEIRIA_WALLET_ADDRESS='${EMPEIRIA_WALLET_ADDRESS} >> $HOME/.bash_profile
echo 'export EMPEIRIA_VALOPER_ADDRESS='${EMPEIRIA_VALOPER_ADDRESS} >> $HOME/.bash_profile
source $HOME/.bash_profile
Create validator
check your wallet balance:
emped query bank balances $EMPEIRIA_WALLET_ADDRESS
To create your validator run command below
emped tx staking create-validator \
--amount 1000000uempe \
--from $WALLET \
--commission-max-change-rate "0.01" \
--commission-max-rate "0.2" \
--commission-rate "0.1" \
--min-self-delegation "1" \
--pubkey $(emped tendermint show-validator) \
--moniker $NODENAME \
--chain-id $EMPEIRIA_CHAIN_ID
--gas-prices 0.001uempe \
--gas "auto" \
--gas-adjustment "1.5"
Check your validator key
[[ $(emped q staking validator $EMPEIRIA_VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(emped status | jq -r .validator_info.PubKey.value) ]] && echo -e "\n\e[1m\e[32mTrue\e[0m\n" || echo -e "\n\e[1m\e[31mFalse\e[0m\n"
Get list of validators
emped q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
Usefull commands
Service management
Check logs
journalctl -fu emped -o cat
Start service
sudo systemctl start emped
Stop service
sudo systemctl stop emped
Restart service
sudo systemctl restart emped
Node info
Synchronization info
emped status 2>&1 | jq .sync_info
Validator info
emped status 2>&1 | jq .validator_info
Node info
emped status 2>&1 | jq .node_info
Show node id
emped tendermint show-node-id
Wallet operations
List of wallets
emped keys list
Recover wallet
emped keys add $WALLET --recover
Delete wallet
emped keys delete $WALLET
Get wallet balance
emped query bank balances $EMPEIRIA_WALLET_ADDRESS
Transfer funds
emped tx bank send $EMPEIRIA_WALLET_ADDRESS <TO_EMPEIRIA_WALLET_ADDRESS> 1000000uempe
Voting
emped tx gov vote 1 yes --from $WALLET --chain-id=$EMPEIRIA_CHAIN_ID
Staking, Delegation and Rewards
Delegate stake
emped tx staking delegate $EMPEIRIA_VALOPER_ADDRESS 1000000uempe --from=$WALLET --chain-id=$EMPEIRIA_CHAIN_ID --gas=auto
Redelegate stake from validator to another validator
emped tx staking redelegate <srcValidatorAddress> <destValidatorAddress> 1000000uempe --from=$WALLET --chain-id=$EMPEIRIA_CHAIN_ID --gas=auto
Withdraw all rewards
emped tx distribution withdraw-all-rewards --from=$WALLET --chain-id=$EMPEIRIA_CHAIN_ID --gas=auto
Withdraw rewards with commision
emped tx distribution withdraw-rewards $EMPEIRIA_VALOPER_ADDRESS --from=$WALLET --commission --chain-id=$EMPEIRIA_CHAIN_ID
Validator management
Edit validator
emped tx staking edit-validator \
--moniker=$NODENAME \
--identity=<your_keybase_id> \
--website="<your_website>" \
--details="<your_validator_description>" \
--chain-id=$EMPEIRIA_CHAIN_ID \
--from=$WALLET
Unjail validator
emped tx slashing unjail \
--broadcast-mode=block \
--from=$WALLET \
--chain-id=$EMPEIRIA_CHAIN_ID \
--gas=auto
Public Endpoints
RPC
https://testnet-empeiria-rpc.konsortech.xyz
API
https://testnet-empeiria-api.konsortech.xyz
gRPC
testnet-empeiria.konsortech.xyz:16090
Persistence Peers
70d0d06e3542ef3c43bb76052ead755d456fbe81@testnet-empeiria.konsortech.xyz:16657
Seeds
32df95054cae287d742ed3d8ec433a633d6582ec@testnet-seed.konsortech.xyz:17165
Mirroring Genesis
https://snap2.konsortech.xyz/empeiria/genesis.json
Address Book
https://snap2.konsortech.xyz/empeiria/addrbook.json
Snapshot
sudo systemctl stop emped
cp $HOME/.empe-chain/data/priv_validator_state.json $HOME/.empe-chain/priv_validator_state.json.backup
rm -rf $HOME/.empe-chain/data
SNAP_NAME=$(curl -s https://snap1.konsortech.xyz/empeiria/ | egrep -o ">empeiria-snapshot.*\.tar.lz4" | tr -d ">")
curl https://snap2.konsortech.xyz/empeiria/${SNAP_NAME} | lz4 -dc - | tar -xf - -C $HOME/.empe-chain
mv $HOME/.empe-chain/priv_validator_state.json.backup $HOME/.empe-chain/data/priv_validator_state.json
sudo systemctl restart emped && journalctl -u emped -f --no-hostname -o cat