⛓️StateSync/Snapshot
🔥C4E🔥
MAINNET
StateSync C4E Mainnet
SNAP_RPC=https://c4e.rpc.m.stavr.tech:443
peers="5ed0b8f7989d34438f71ccc74b0ab0fbf763a475@c4e.peer.stavr.tech:17096"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.c4e-chain/config/config.toml
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 100)); \
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\"| ; \
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.c4e-chain/config/config.toml
c4ed tendermint unsafe-reset-all --home /root/.c4e-chain --keep-addr-book
sudo systemctl restart c4ed && journalctl -u c4ed -f -o catSnapShot Mainnet - updated every 5 hours
Useful Tools
🔥EXPLORER-M🔥: https://explorer.stavr.tech/C4E Indexer "ON"
🔥EXPLORER-T🔥: https://explorer.stavr.tech/C4E-Testnet` Indexer "ON"
🔥API-M🔥: https://c4e.api.m.stavr.tech
🔥API-T🔥: https://c4e.api.t.stavr.tech
🔥RPC-M🔥: https://c4e.rpc.m.stavr.tech Snapshot-interval = 1000
🔥gRPC-M🔥: http://c4e.grpc.m.stavr.tech:7029
Seed-M
Addrbook-M
Addrbook-T
Genesis-T
Genesis-M
Auto_install_script-M
Auto_install_script-T
Last updated
Was this helpful?