Skip to main content

Api & Sync

Explorer:

https://explorer.nodesync.top/Althea-Mainnet

API:

https://althea-api.nodesync.top

RPC:

https://althea-rpc.nodesync.top

Peers Scanner:

Auto-updated every 6 hours

Loading peers...

StateSync

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

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

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

Snapshot

sudo systemctl stop althead

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

althea tendermint unsafe-reset-all --home $HOME/.althea --keep-addr-book

curl -L https://snapshots.nodesync.top/Mainnet/Althea/althea_latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.althea

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

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