Quick sync
Start your Axelar node using a snapshot.
💡
Tip: Looking for instructions using the old script node.sh
? See
here.
💡
Tip: These instructions synchronize your Axelar node quickly by downloading a recent snapshot of the blockchain. If instead you prefer to synchronize your Axelar node using the Axelar peer-to-peer network then see Genesis sync
Prerequisites
- Configure your environment as per CLI configuration and Node configuration.
- Ensure
AXELARD_HOME
variable is set in your current session. See node config (e.g.AXELARD_HOME="$HOME/.axelar"
).
Download the latest Axelar blockchain snapshot
Download the latest Axelar blockchain snapshot for your chosen network (testnet or mainnet) from a provider:
💡
Axelar does not support state sync, so a snapshot should be more than 100GB in size.
The following instructions assume you downloaded the pruned
snapshot from quicksync.io
.
Let SNAPSHOT_FILE
denote the file name of the snapshot you downloaded. Example file names:
- Mainnet:
axelar-dojo-1-pruned.xyz.tar.lz4
- Testnet:
axelartestnet-lisbon-3-pruned.xyz.tar.lz4
Decompress the downloaded snapshot into your ${AXELARD_HOME}/data
directory.
# Ensure AXELARD_HOME env var is set or substitute it below
# Remove any existing data if it existsrm -r ${AXELARD_HOME}/data
lz4 -dc --no-sparse [SNAPSHOT_FILE] | tar xfC - ${AXELARD_HOME}
# Verify that snapshot data was uncompressedls $AXERLARD_HOME/data
Start your node
$AXELARD_HOME/bin/axelard start [moniker] --home $AXELARD_HOME >> $AXELARD_HOME/logs/axelard.log 2>&1 &
Your Axelar node will launch and begin downloading the rest of the blockchain after the snapshot.
View your logs in real time
tail -f $AXELARD_HOME/logs/axelard.log
You should see the height (representing the downloaded blockchain) increasing in the logs.
... executed block height=690578 ...... executed block height=690579 ...