L0vd services
WebsiteTwitter
  • Chain services
  • MAINNETS
    • Archway
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Axelar
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • Berachain
      • Snapshot
    • Bitcanna
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • Composable
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • Cosmos Hub
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Gitopia
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • HAQQ
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • Iris
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Juno
      • State sync
    • Namada
      • Installation
      • Staking
      • Snapshot
      • Useful commands
    • Nois
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • Osmosis
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Stride
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • Umee
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
  • TESTNETS
    • Andromeda
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Archway
      • Installation
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Arkeo
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • Artela
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • Babylon
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Berachain v2
      • Snapshot
      • Archive snapshot
    • Bitcanna
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • BonusBlock
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • Composable
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • Defund
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Empower
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Entangle
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • HAQQ
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Humans
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Lava
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Mantra
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • Namada
      • Installation
      • Snapshot
      • State sync
      • Useful commands
    • Namada-se
      • Installation
      • Staking
      • Snapshot
      • State sync
      • Useful commands
    • Nois
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Noria
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • Ojo
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Ollo
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
      • Wallet bot
    • Pryzm
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • Selfchain
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
    • Umee
      • Installation
      • State sync
      • Useful commands
      • Monitoring
    • Union
      • Installation
      • Snapshot
      • State sync
      • Useful commands
      • Monitoring
Powered by GitBook
On this page
  • Info
  • Guide to sync your node using State Sync:
  1. TESTNETS
  2. Composable

State sync

PreviousSnapshotNextUseful commands

Last updated 7 months ago

Info

Public RPC endpoint:

Public API:

Guide to sync your node using State Sync:

Copy the entire command

sudo systemctl stop centaurid
SNAP_RPC="https://composable-testnet.rpc.l0vd.com:443"; \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
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\"|" $HOME/.banksy/config/config.toml

peers="@composable-testnet.peers.l0vd.com:" \
&& sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.banksy/config/config.toml 

centaurid tendermint unsafe-reset-all --home ~/.banksy && sudo systemctl restart centaurid && journalctl -u centaurid -f --output cat

Turn off State Sync Mode after synchronization

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" $HOME/.banksy/config/config.toml
https://composable-testnet.rpc.l0vd.com
https://composable-testnet.api.l0vd.com