"Empower Chain" Guide | Snapshot services 

RPC http://62.171.142.94:26657  
 

NODE SETUP GUIDE VIA SNAPSHOT

 

Install GO & Dependencies HERE

Install binaries & Run node  ( v0.0.3 FROM BLOCK #779400)

cd $HOME
git clone https://github.com/empowerchain/empowerchain
cd $HOME/empowerchain/chain/
git checkout v0.0.3
make install

empowerd init <NODE_NAME
empowerd config chain-id altruistic-1

wget -qO ~/.empowerchain/config/genesis.json https://github.com/empowerchain/empowerchain/raw/main/testnets/altruistic-1/genesis.json

#check genesis hash
sha256sum $HOME/.empowerchain/config/genesis.json
#should be:  fcae4a283488be14181fdc55f46705d9e11a32f8e3e8e25da5374914915d5ca8

sudo tee /etc/systemd/system/empowerd.service > /dev/null <<EOF
[Unit]
Description=EmpowerChain Node
After=network.target
[Service]
User=$USER
Type=simple
ExecStart=$(which empowerd) start
Restart=on-failure
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload 
sudo systemctl enable empowerd
 
#check snapshot height  : curl -s http://94.250.203.6:90 | egrep -o ">empower-snap*.*tar" | tr -d ">"

snap=$(curl -s http://94.250.203.6:90 | egrep -o ">empower-snap*.*tar" | tr -d ">")
sudo systemctl stop empowerd
mv $HOME/.empowerchain/data/priv_validator_state.json $HOME
rm-rf  $HOME/.empowerchain/data
wget -P $HOME http://94.250.203.6:90/${snap}
tar xf $HOME/${snap} -C $HOME/.empowerchain
rm $HOME/${snap}
mv $HOME/priv_validator_state.json $HOME/.empowerchain/data
wget -q -O $HOME/.empowerchain/config/addrbook.json http://94.250.203.6:90/addrbook-empower.json
sudo systemctl restart empowerd
journalctl -u empowerd  -f -o cat

 

USEFUL COMMANDS


#check node status
curl localhost:26657/status
#or
empowerd status | jq

#check all available wallets
empowerd keys list

#balance of your wallet
empowerd query bank balances <wallet-key>

#find valoper address
empowerd keys show <wallet-key> --bech val -a

#check validator staking state
empowerd query staking validator <valoper-address> --chain-id altruistic-1

#command for delegating
empowerd tx staking delegate <valoper-address> 1000000umpwr --chain-id altruistic-1 --from <wallet-name> --gas=auto

#Withdraw all-rewards with commisions
empowerd tx distribution withdraw-rewards <valoper-address> --from <wallet-name> --chain-id altruistic-1 --commission --yes

#unjail command
empowerd tx slashing unjail --from <wallet_name> --chain-id altruistic-1

#vote | options : yes/no/no_with_veto/abstain
empowerd tx gov vote 1 yes --from <wallet_name> --chain-id altruistic-1
 

GOOD LUCK!!!

 

AM Solutions © Copyright. All rights reserved.