"EVMOS" Testnet Guide / Data Snapshots

RPC https://rpc.evmos-test.theamsolutions.info:443  |   API https://api.evmos-test.theamsolutions.info:443
gRPC : grpc.evmos-test.theamsolutions.info:9290

Official docs HERE
 
NODE SETUP GUIDE 
 


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

evmosd config chain-id evmos_9000-4 
evmosd init <node-name> --chain-id evmos_9000-4

wget -q -O $HOME/.evmosd/config/genesis.json https://snapshots.theamsolutions.info/evmos-test-genesis.json  

sudo tee /etc/systemd/system/evmosd.service << EOF
[Unit]
Description=Evmosd-Testnet
After=network.target
#
[Service]
User=$USER
Type=simple
ExecStart=$(which evmosd) start skip checks --x-crisis-skip-assert-invariants
Restart=on-failure
RestartSec=20
LimitNOFILE=65535
#
[Install]
WantedBy=multi-user.target
EOF



STATE SYNC


evmosd tendermint unsafe-reset-all --home $HOME/.evmosd

SNAP_RPC="https://rpc.evmos.test.theamsolutions.info:443" \
&& LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height) \
&& BLOCK_HEIGHT=$((LATEST_HEIGHT - 8000)) \
&& 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/.evmosd/config/config.toml; \
wget -q -O $HOME/.evmosd/config/addrbook.json https://snapshots.theamsolutions.info/evmos-tets-addrbook.json

sudo systemctl restart evmosd.service
sudo journalctl -u evmosd.service -fn 100 -o cat 

 

 DATA SNAPSHOT 

 

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

snap=$(curl -s https://snapshots.theamsolutions.info | egrep -o ">evmos-test-snap*.*tar" | tr -d ">")
wget -P $HOME https://snapshots.theamsolutions.info/${snap}
sudo systemctl stop evmosd
mv $HOME/.evmosd/data/priv_validator_state.json $HOME
rm-rf  $HOME/.evmosd/data; rm-rf  $HOME/.evmosd/wasm
tar xf $HOME/${snap} -C $HOME/.evmosd
mv $HOME/priv_validator_state.json $HOME/.evmosd/data
rm $HOME/${snap}
wget -q -O $HOME/.evmosd/config/addrbook.json https://snapshots.theamsolutions.info/evmos-tets-addrbook.json
sudo systemctl restart evmosd
journalctl -u evmosd-fn 100 -o cat

 

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.