Dymension

Download: addrbook.json

wget -O addrbook.json https://dymension.cosmostaking.com/download/addrbook.json --inet4-only
mv addrbook.json $HOME/.dymension/config

Our state-sync RPC server for Dymension Mainnet is

https://rpc1.dymension.cosmostaking.com

Create a reusable shell script such as `state_sync.sh` with the following code. The code will fetch important state-sync information (such as block height and trust hash) from our server and update your `config.toml` file accordingly.

                            

#!/bin/bash SNAP_RPC="https://rpc1.dymension.cosmostaking.com" 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) 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/.dymension/config/config.toml

Stop the node

sudo systemctl stop dymd

Reset the node

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

Execute the script

sh state_sync.sh

Restart the node

sudo systemctl restart dymd