Airchains
- Network Type: Testnet
- Chain ID: junction
- Endpoints:
Airchains is a versatile and powerful framework for creating customized rollups with a variety of options. Our framework supports EVM, SVM, and CosmWasm-based rollups
Download: addrbook.json
wget -O addrbook.json https://airchains.t.cosmostaking.com/download/addrbook.json --inet4-only
mv addrbook.json $HOME/.junction/config
Our state-sync RPC server for Airchains Testnet is
https://rpc1.airchains.t.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.airchains.t.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/.junction/config/config.toml
Stop the node
sudo systemctl stop junctiond
Reset the node
junctiond tendermint unsafe-reset-all --home $HOME/.junction --keep-addr-book
Execute the script
sh state_sync.sh
Restart the node
sudo systemctl restart junctiond