Skip to main content

Api & Sync

Api & Sync

Explorer: https://explorer.nodesync.top/Shentu-Mainnet

API:

https://shentu-api.nodesync.top

RPC:

https://shentu-rpc.nodesync.top

Peers Scanner:

Auto-updated every 6 hours

Loading peers...

State sync

sudo systemctl stop shentud 
cp $HOME/.shentud/data/priv_validator_state.json $HOME/.shentud/priv_validator_state.json.backup
shentud tendermint unsafe-reset-all --home $HOME/.shentud --keep-addr-book

SNAP_RPC="https://rpc.nodesync.top:443/shentu-mainnet"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)

sed -i "/\[statesync\]/, /^enable =/ s/=.*/= true/;\
/^rpc_servers =/ s|=.*|= \"$SNAP_RPC,$SNAP_RPC\"|;\
/^trust_height =/ s/=.*/= $BLOCK_HEIGHT/;\
/^trust_hash =/ s/=.*/= \"$TRUST_HASH\"/" $HOME/.shentud/config/config.toml
mv $HOME/.shentud/priv_validator_state.json.backup $HOME/.shentud/data/priv_validator_state.json

sudo systemctl restart shentud && sudo journalctl -u shentud -fo cat

Snapshot

sudo systemctl stop shentud 

cp $HOME/.shentud/data/priv_validator_state.json $HOME/.shentud/priv_validator_state.json.backup

shentud tendermint unsafe-reset-all --home $HOME/.shentud --keep-addr-book
curl https://snapshots.nodesync.top/Mainnet/Shentu/shentu_snap.tar.lz4 | lz4 -dc - | tar -xf - -C "$HOME/.shentud"

mv $HOME/.shentud/priv_validator_state.json.backup $HOME/.shentud/data/priv_validator_state.json

sudo systemctl restart shentud && sudo journalctl -u shentud -fo cat