Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.22 KB

TEMPLATE.md

File metadata and controls

45 lines (30 loc) · 1.22 KB

starknet-snapshots

Starknet full node snapshots maintained by the zkLend team

Downloading the snapshots

There are several ways to download the snapshots. You're recommended to use S3-compatible clients (e.g. rclone). It's also possible to just use a plain curl command, but it seems to be prone to failures based on reports from users.

Rclone

Download and install Rclone. Then, add this section to your config file, typically located at $HOME/.config/rclone/rclone.conf (you may need to create the file on a fresh install):

[zklend-pathfinder-backup]
type = s3
provider = Cloudflare
region = auto
endpoint = https://pathfinder-backup.zklend.com/

Then, download a snapshot to the current directory with:

rclone copy -P zklend-pathfinder-backup:EXAMPLE_NETWORK/EXAMPLE_FILE_NAME .

curl

Downloading with curl is not recommended but possible:

curl -OL "https://pathfinder-backup.zklend.com/EXAMPLE_NETWORK/EXAMPLE_FILE_NAME"

Using the snapshots

Simply decompress and extract the file downloaded with tar:

tar Jxvf ./EXAMPLE_FILE_NAME

LIST_OF_SNAPSHOTS