Spider Node Docs

Service

RPC#

Snapshot for DA Mainnet#

Snapshot block height: here

1. Install Required Tools#

sh
sudo apt-get install wget lz4 aria2 pv -y

2. Stop Your Avail Service#

Replace {your-avail-service-name} with your actual service name:

sh
sudo systemctl stop {your-avail-service-name}

3. Download Snapshot#

Find the correct folder path:

sh
find / -type d -name "avail_da_mainnet" 2>/dev/null

Example output: /root/avail/node-data/chains/avail_da_mainnet

Remove the old database folder:

sh
sudo rm -rf /root/avail/node-data/chains/avail_da_mainnet/paritydb

Download and extract the snapshot file (replace {your-path-find-above} with the correct path you found earlier):

sh
cd $HOME
aria2c -x 16 -s 16 -o avail-snapshot.lz4 https://snapshot.coha05.com/avail-snapshot.lz4

Extracting the snapshot file:

sh
mkdir -p /root/avail/node-data/chains/avail_da_mainnet/paritydb && \
lz4 -c -d avail-snapshot.lz4 | tar -x -C /root/avail/node-data/chains/avail_da_mainnet/paritydb

4. Restart the Avail Service#

Replace {your-avail-service-name} with your actual service name:

sh
sudo systemctl restart {your-avail-service-name}

Notes#

  • Ensure you replace all placeholders ({your-avail-service-name} and {your-path-find-above}) with actual values specific to your setup.
  • The rm -rf command will delete all existing data in the specified directory. Use it with caution.