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
Network Information
varanasi-1
Testnet
API Endpoints
Technical Documentation
Installation Script
Run this command to install the addrbook:
wget -O addrbook.json https://airchains.t.cosmostaking.com/download/addrbook.json --inet4-only
mv addrbook.json $HOME/.junction/config
Important Warning:
Do not state-sync a validator node. Instead, state-sync a full-node and move data to validator node. Be sure to backup and restore
Do not state-sync a validator node. Instead, state-sync a full-node and move data to validator node. Be sure to backup and restore
priv_validator_key.json
RPC Server
Our state-sync RPC server for Airchains Testnet:
https://rpc1.airchains.t.cosmostaking.com
State Sync Script
Create a reusable shell script state_sync.sh
with the following code:
#!/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
Step-by-Step Instructions
1
Stop the node
sudo systemctl stop junctiond
2
Reset the node
junctiond tendermint unsafe-reset-all --home $HOME/.junction --keep-addr-book
3
Execute the script
sh state_sync.sh
4
Restart the node
sudo systemctl restart junctiond