Skip to main content

Api & Sync

Explorer:

https://explorer.nodesync.top/Odiseo-Testnet

API:

https://api.nodesync.top/odiseo-testnet

RPC:

https://rpc.nodesync.top/odiseo-testnet

State sync

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

SNAP_RPC="https://rpc.nodesync.top:443/odiseo-testnet"
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/.achilles/config/config.toml
mv $HOME/.achilles/priv_validator_state.json.backup $HOME/.achilles/data/priv_validator_state.json

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