⛓️StateSync/Snapshot

🔥Composable🔥

MAINNET

StateSync Composable Mainnet

systemctl stop picad
SNAP_RPC=https://composable.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/.banksy/config/config.toml
picad tendermint unsafe-reset-all --home /root/.banksy
wget -O $HOME/.banksy/config/addrbook.json "https://server-1.stavr.tech/Mainnet/Picasso/addrbook.json"
curl -o - -L https://composable.wasm.stavr.tech/wasm-composable.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy
sudo systemctl restart picad && journalctl -fu picad -o cat

SnapShot Mainnet - updated every 5 hours

You can check the size and time of snapshot creation with this command curl -sI https://server-1.stavr.tech/Mainnet/Picasso/pica-snap-1.tar.lz4 | grep "last" && curl -sI https://server-1.stavr.tech/Mainnet/Picasso/pica-snap-1.tar.lz4 | grep content-length | awk '{printf "%.2f GB\n", $2/1024/1024/1024}'

cd $HOME
apt install lz4
sudo systemctl stop picad
cp $HOME/.banksy/data/priv_validator_state.json $HOME/.banksy/priv_validator_state.json.backup
rm -rf $HOME/.banksy/data
LATEST_SNAPSHOT=$(curl -s https://server-1.stavr.tech/Mainnet/Picasso/ | grep -oE 'pica-snap-[0-9]+\.tar\.lz4' | while read SNAPSHOT; do HEIGHT=$(curl -s "https://server-1.stavr.tech/Mainnet/Picasso/${SNAPSHOT%.tar.lz4}-info.txt" | awk '/Block height:/ {print $3}'); echo "$SNAPSHOT $HEIGHT"; done | sort -k2 -nr | head -n 1 | awk '{print $1}')
curl -o - -L https://server-1.stavr.tech/Mainnet/Picasso/$LATEST_SNAPSHOT | lz4 -c -d - | tar -x -C $HOME/.banksy
curl -o - -L https://composable.wasm.stavr.tech/wasm-composable.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy
mv $HOME/.banksy/priv_validator_state.json.backup $HOME/.banksy/data/priv_validator_state.json
wget -O $HOME/.banksy/config/addrbook.json "https://server-1.stavr.tech/Mainnet/Picasso/addrbook.json"
sudo systemctl restart picad && journalctl -fu picad -o cat

TESTNET

StateSync Composable Testnet

SNAP_RPC=https://composable.rpc.t.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/.banksy/config/config.toml
picad tendermint unsafe-reset-all --home /root/.banksy
wget -O $HOME/.banksy/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Composable/Testnet/addrbook.json"
curl -o - -L https://composable.wasmt4.stavr.tech/wasm-composable.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy --strip-components 2
systemctl restart picad && journalctl -fu picad -o cat

SnapShot Composable Testnet

You can check the size and time of snapshot creation with this command curl -sI https://composable-t4.snapshot.stavr.tech/composable-snap.tar.lz4 | grep "last" && curl -sI https://composable-t4.snapshot.stavr.tech/composable-snap.tar.lz4 | grep content-length | awk '{printf "%.2f GB\n", $2/1024/1024/1024}'

cd $HOME
apt install lz4
sudo systemctl stop picad
cp $HOME/.banksy/data/priv_validator_state.json $HOME/.banksy/priv_validator_state.json.backup
rm -rf $HOME/.banksy/data
curl -o - -L https://composable-t4.snapshot.stavr.tech/composable-snap.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy --strip-components 2
curl -o - -L https://composable.wasmt4.stavr.tech/wasm-composable.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy --strip-components 2
mv $HOME/.banksy/priv_validator_state.json.backup $HOME/.banksy/data/priv_validator_state.json
wget -O $HOME/.banksy/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Composable/Testnet/addrbook.json"
sudo systemctl restart picad && journalctl -fu picad -o cat

Useful Tools

🔥EXPLORER-M🔥: https://explorer.stavr.tech/Composable-Mainnet Indexer "ON" 🔥EXPLORER-T🔥: https://explorer.stavr.tech/Composable-Testnet Indexer "ON" 🔥API-M🔥: https://composable.api.m.stavr.tech 🔥API-T🔥: https://composable.api.t4.stavr.tech 🔥RPC-M🔥: https://composable.rpc.m.stavr.tech Snapshot-interval = 1000 🔥RPC-T🔥: https://composable.rpc.t.stavr.tech Snapshot-interval = 1000 🔥gRPC-M🔥: composable.grpc.m.stavr.tech:9907

  • Seed-M

aa6398f9644e98fa3d04f7dbdd7740c995eb0530@composable.seed.stavr.tech:20306
  • Addrbook-M

wget -O $HOME/.banksy/config/addrbook.json "https://server-1.stavr.tech/Mainnet/Picasso/addrbook.json"
  • Addrbook-T

wget -O $HOME/.banksy/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Composable/Testnet/addrbook.json"
  • Genesis-M

wget -L -O $HOME/.banksy/config/genesis.json https://server-1.stavr.tech/Mainnet/Picasso/genesis.json
  • Genesis-T

wget -O ~/.banksy/config/genesis.json "https://raw.githubusercontent.com/111STAVR111/props/main/Composable/Testnet/genesis.json"
  • WASM-M

curl -o - -L https://composable.wasm.stavr.tech/wasm-composable.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy
  • WASM-T

curl -o - -L https://composable.wasmt4.stavr.tech/wasm-composable.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy --strip-components 2
  • Auto_install_script-M

source <(curl -s https://raw.githubusercontent.com/111STAVR111/props/refs/heads/main/Composable/picam)
  • Auto_install_script-T

wget -O compost4 https://raw.githubusercontent.com/111STAVR111/props/main/Composable/Testnet/compost4 && chmod +x compost4 && ./compost4

RPC Scanning

We scan nodes in real time every 4 hours. And we provide the final result of RPC endpoints. We cannot influence the operation of these nodes in any way.

If Voting Power is higher than 0 --> then the Node is a validator of the network and may be subject to attack and be a potential threat to the chain.
We marked such validators with a red symbol

Last updated