XRPL Node Snapshots

Quick Info

You can copy & paste all CLI commands from the Batch pasta section to download and apply a snapshot in one go. Alternatively, you can execute the steps one by one.

Snapshot [pruned]

🔄 Created: unknown ago. 📦 Size: N/A. 🗄️ DB: goleveldb.

wget https://snapshot01.at.htw.tech/xrpl/testnet/no_snapshots_yet

Batch "pasta"

Set your node folder

export FOLDER=

Just copy and paste into the terminal:

# Stop service
sudo systemctl stop exrpd.service
# Download addrbook
wget -O $HOME/$FOLDER/config/addrbook.json https://snapshot01.at.htw.tech/xrpl/testnet/addrbook.json --inet4-only
# Download genesys
wget -O $HOME/$FOLDER/config/genesis.json https://snapshot01.at.htw.tech/xrpl/testnet/genesis.json --inet4-only
# Save validator state file
cp $HOME/$FOLDER/data/priv_validator_state.json $HOME/$FOLDER/priv_validator_state.json.backup
# Clear data
rm -rf $HOME/$FOLDER/data
rm -rf $HOME/$FOLDER/wasm
# Download snaphot file
curl https://snapshot01.at.htw.tech/xrpl/testnet/no_snapshots_yet | lz4 -dc - | tar -xf - -C $HOME/$FOLDER
# Restore validator state file
mv $HOME/$FOLDER/priv_validator_state.json.backup $HOME/$FOLDER/data/priv_validator_state.json
# Restart service
sudo systemctl restart exrpd && sudo journalctl -o cat -fu exrpd

Step By Step

Node Folder

Set your node folder name:

export FOLDER=".exrpd"

Stop node

Stop the service:

sudo systemctl stop exrpd.service

Download genesis

Download the network genesis file.

wget -O $HOME/$FOLDER/config/genesis.json https://snapshot01.at.htw.tech/xrpl/testnet/genesis.json --inet4-only

Download Addrbook

Download the network addrbook file.

wget -O $HOME/$FOLDER/config/addrbook.json https://snapshot01.at.htw.tech/xrpl/testnet/addrbook.json --inet4-only

Backup node state

⚠️ Make sure to save priv_validator_state.json. It contains your node state.

cp $HOME/$FOLDER/data/priv_validator_state.json $HOME/$FOLDER/priv_validator_state.json.backup

Clear data folders

Delete old data folders:

rm -rf $HOME/$FOLDER/data
rm -rf $HOME/$FOLDER/wasm

Download snapshot and restore data

Download the snapshot file and extract it into the data folder:

curl https://snapshot01.at.htw.tech/xrpl/testnet/no_snapshots_yet | lz4 -dc - | tar -xf - -C $HOME/$FOLDER

Restore node state

Move the saved validator state back to the data folder:

mv $HOME/$FOLDER/priv_validator_state.json.backup $HOME/.exrpd/data/priv_validator_state.json

Restart node

Restart the service and follow logs:

sudo systemctl restart exrpd && sudo journalctl -o cat -fu exrpd