"Empower Chain" mainnet Guides | Services 

RPC https://rpc-empower.theamsolutions.info
API https://rest-empower.theamsolutions.info
gRPC https://grpc-empower.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.theamsolutions.info/abci_info | jq -r ."result"."response"."version")
git checkout v${ver}
make install

empowerd init <NODE_NAME>
 
empowerd config chain-id empowerchain-1

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.025umpwr\"/" $HOME/.empowerchain/config/app.toml
seeds="a1427b456513ab70967a2a5c618d347bc89e8848@seed.empowerchain.io:26656,6740fa259552a628266a85de8c2a3dee7702b8f9@empower-mainnet-seed.itrocket.net:14656,e16668ddd526f4e114ebb6c4714f0c18c0add8f8@empower-seed.zenscape.one:26656,f2ed98cf518b501b6d1c10c4a16d0dfbc4a9cc98@tenderseed.ccvalidators.com:27001"
sed -i -e 's|^seeds *=.*|seeds = "'$seeds'"|' $HOME/.empowerchain/config/config.toml

wget -qO $HOME/.empowerchain/config/genesis.json https://snapshots.theamsolutions.info/emp-genesis.json

#check genesis hash
sha256sum $HOME/.empowerchain/config/genesis.json
#right output 819d33d14c35bbfbc5997db9bf545eb7a5504b5870a307ce90c3813add4b316b

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 skip checks --x-crisis-skip-assert-invariants
Restart=on-failure
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload 
sudo systemctl enable empowerd

STATE SYNC

 

sudo systemctl stop empowerd
empowerd tendermint  unsafe-reset-all --home $HOME/.empowerchain
wget -q -O $HOME/.empowerchain/config/addrbook.json https://snapshots.theamsolutions.info/emp-main-addr-book.json

SNAP_RPC="https://rpc-empower.theamsolutions.info:443"; \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height) \
&& BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)) \
&& TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash); \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH

sed -i.bak -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/.empowerchain/config/config.toml

sudo systemctl restart empowerd
sudo journalctl -u empowerd  -fn 30 -o cat
 

DATA SNAPSHOT


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

#install snapshot
snap=$(curl -s https://snapshots.theamsolutions.info | 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 $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-main-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 empowerchain-1

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

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

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

#vote | options : yes/no/no_with_veto/abstain
empowerd tx gov vote 1 yes --from <wallet_name> --chain-id empowerchain-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.