For the complete documentation index, see llms.txt. This page is also available as Markdown.

Snapshots

Restore a Pathfinder database snapshot for Mainnet.

Mainnet · Software Mansion snapshots

Open the official snapshot list. Select mainnet, verify the minimum Pathfinder version and note the SHA-256 checksum. These snapshots are supplied by Software Mansion.

Install extraction tools

Install Zstandard and the download client.

sudo apt install -y wget zstd

Open the project

Use the same directory as the node guide.

cd "$HOME/pathfinder-mainnet"

Download

Download the snapshot for this network.

wget --continue https://rpc.pathfinder.swmansion.com/snapshots/latest/mainnet.sqlite.zst -O snapshot.sqlite.zst

Check the checksum

Compare the output with the value on the official list. Stop on a mismatch.

sha256sum snapshot.sqlite.zst

Stop the node

Skip this command only if the container has never been created.

Keep the old database directory

Moving the whole directory also preserves any SQLite WAL files. Use a fresh backup path.

Create a clean data directory

Prepare the mounted directory.

Extract

Write the database using the filename expected for this network.

Match the snapshot’s state-trie mode in compose.yaml. If its mode differs from --storage.state-tries=100, use the mode supplied by the snapshot or choose a matching snapshot; changing archive/pruned mode requires a new database.

Start

Start Pathfinder against the restored file.

Verify recovery

The node should catch up from the snapshot height.

Snapshot reference.

Last updated