⛓️StateSync/Snapshot
🔥XPLA🔥
MAINNET
StateSync Xpla Mainnet
systemctl stop xplad
SNAP_RPC=https://xpla.rpc.m.stavr.tech: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)
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/.xpla/config/config.toml
xplad tendermint unsafe-reset-all --home /root/.xpla
wget -O $HOME/.xpla/config/addrbook.json "https://server-1.stavr.tech/Mainnet/Xpla/addrbook.json"
curl -o - -L https://xpla.wasm.stavr.tech/wasm-xpla.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.xpla
sudo systemctl restart xplad && journalctl -fu xplad -o catSnapShot Mainnet - updated every 5 hours
Useful Tools
🔥EXPLORER-M🔥: https://explorer.stavr.tech/Xpla-Mainnet Indexer "ON"
🔥API-M🔥: https://xpla.api.m.stavr.tech
🔥RPC-M🔥: https://xpla.rpc.m.stavr.tech Snapshot-interval = 1000
🔥gRPC-M🔥: xpla.grpc.m.stavr.tech:112/
Seed-M
Addrbook-M
Genesis-M
WASM-M
Auto_install_script-M
Last updated
Was this helpful?