"Swisstronik" services 

OFFICIAL DOCS : https://swisstronik.gitbook.io/swisstronik-docs
* * *
RPC : https://rpc-swisstronik.theamsolutions.info
API : https://rest-swisstronik.theamsolutions.info
gRPC : https://grpc-swisstronik.theamsolutions.info
* * *
EXPLORER : https://explorer-cosmos.testnet.swisstronik.com
 * * *
TMKMS REMOTE SIGNING GUIDE : https://github.com

 

STATE SYNC SERVICE
 

sudo systemctl stop swisstronikd.service
swisstronikd tendermint unsafe-reset-all

SNAP_RPC="https://rpc-swisstronik.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/.swisstronik/config/config.toml;
sed -i 's/persistent_peers = ""/persistent_peers = "c5dbced5fef3a5b14d3c3f4613a901d54455da43@141.95.169.103:26656"/' ~/.swisstronik/config/config.toml

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


 

 

 DATA SNAPSHOT
 (not full data / updates ~ every 6 hrs.)
 

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

snap=$(curl -s https://snap.swisstronik.theamsolutions.info | egrep -o ">swiss-snap*.*tar" | tr -d ">")
wget -P $HOME https://snap.swisstronik.theamsolutions.info/${snap}
sudo systemctl stop swisstronikd.service
mv $HOME/.swisstronik/data/priv_validator_state.json $HOME
rm -rf $HOME/.swisstronik/data
tar xf $HOME/${snap} -C $HOME/.swisstronik; rm $HOME/${snap}
mv $HOME/priv_validator_state.json $HOME/.swisstronik/data/
sed -i 's/persistent_peers = ""/persistent_peers = "c5dbced5fef3a5b14d3c3f4613a901d54455da43@141.95.169.103:26656"/' ~/.swisstronik/config/config.toml
sudo systemctl restart swisstronikd.service
sudo journalctl -u swisstronikd.service -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 and accept the service to view the translations.