"Empower Chain" Testnet Guide | Snapshot services 

RPC https://rpc-empower.test.theamsolutions.info
API https://rest-empower.test.theamsolutions.info
gRPC https://grpc-empower.test.theamsolutions.info
Explorer https://explorer.theamsolutions.info
 

NODE SETUP
 

Istall GO & Dependencies HERE

cd $HOME
git clone https://github.com/EmpowerPlastic/empowerchain
cd $HOME/empowerchain/chain
ver=$(curl -s https://rpc-empower.test.theamsolutions.info/abci_info | jq -r ."result"."response"."version")
git checkout v${ver}
make install

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

wget -qO ~/.empowerchain/config/genesis.json \ https://raw.githubusercontent.com/EmpowerPlastic/empowerchain/main/testnets/circulus-1/genesis.json

#check genesis hash
sha256sum $HOME/.empowerchain/config/genesis.json
#output f01a9b70ac51d919091ad48465100d1f770c1c3788a322e4fa49549d5c3041de

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
 

DATA SNAPSHOT


 
#check snapshot info : curl -s https://snapshots.theamsolutions.info | egrep -o ">empower-test-snap*.*tar" | tr -d ">"

#install snapshot
snap=$(curl -s https://snapshots.theamsolutions.info | egrep -o ">empower-test-snap*.*tar" | tr -d ">")
sudo systemctl stop empowerd
mv $HOME/.empowerchain/data/priv_validator_state.json $HOME
rm -rf  $HOME/.empowerchain/data $HOME/.empowerchain/wasm
wget -P $HOME https://snapshots.theamsolutions.info/${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 https://snapshots.theamsolutions.info/emp-addr-book.json
sudo systemctl restart empowerd
journalctl -u empowerd  -fn 30 -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 circulus-1

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

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

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

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


GOOD LUCK!!!

 

AM Solutions © Copyright. All rights reserved.

We need your consent to load the translations

We use a third-party service to translate the website content that may collect data about your activity. Please review the details in the privacy policy and accept the service to view the translations.