Skip to main content

Polygon

Download weekly snapshot:

LATEST HEIGHTSIZECHAIN IDPRUNINGDATETIMELINK
610787242.3Tbor-mainnetdefault2024-08-2701:32:39bor-mainnet_2024-08-27.tar
20134097482Gheimdall-mainnetdefault2024-08-2601:07:17heimdall-mainnet_2024-08-26.tar
012Gbor-amoydefault2024-09-0802:02:02bor-amoy_2024-09-08.tar
447474919Gheimdall-amoydefault2024-09-0723:12:51heimdall-amoy_2024-09-07.tar
5984531112Terigon-mainnetdefault2024-07-2715:24:06erigon-mainnet_2024-07-26.tar
48141039946Gerigon-amoydefault2024-06-0423:40:39erigon-mumbai_2024-06-04.tar
Our tips

We are providing several commands in order to download and extract snapshots to its corresponding place. Don't hesitate to adjust the commands according to your setup.

Bor Instructions

Stop the service:

  1. Stop bor service
sudo systemctl stop bor.service
  1. Delete data directory:
sudo rm -rf /var/lib/bor/chaindata
  1. Install s5cmd client:
wget https://github.com/peak/s5cmd/releases/download/v2.2.2/s5cmd_2.2.2_Linux-64bit.tar.gz
tar -xf s5cmd_2.2.2_Linux-64bit.tar.gz
rm s5cmd_2.2.2_Linux-64bit.tar.gz
  1. Configure s3 bucket access:
cat <<EOF > s5cmd-r2.cfg
[default]
aws_access_key_id = 6b4b819da0d66d9ddf7bb37520c46a16
aws_secret_access_key = ab2dc9b991f4b5055787e8ba9c09c8b4ceb3e183561fbfa7f6475f23fa474766
aws_region = auto
host_base = dd74dc687a5ce54107082a6849814c19.r2.cloudflarestorage.com
host_bucket = dd74dc687a5ce54107082a6849814c19.r2.cloudflarestorage.com
enable_multipart = True
EOF

Bor Instructions

Download bor snapshot:

./s5cmd --credentials-file ~/s5cmd-r2.cfg --endpoint-url https://dd74dc687a5ce54107082a6849814c19.r2.cloudflarestorage.com cat --raw s3://sc-snapshots/bor-mainnet_2024-08-27.tar | tar -xvf - -C /var/lib/bor/chaindata
sudo systemctl start bor.service
sudo journalctl -u bor.service -f

Heimdall Instructions

Stop the service:

sudo systemctl stop heimdalld.service
Back up your priv_validator_state.json

Please make sure you have a copy of priv_validator_state.json from data folder.

  1. Backup priv_validator_state.json:
cp /var/lib/heimdall/data/priv_validator_state.json $HOME/priv_validator_state.json
  1. Delete the data:
sudo rm -rf /var/lib/heimdall/data

Download the snapshot archive:

wget -O - http://download6.snapshots.stakecraft.com/heimdall-mainnet_2024-08-26.tar | tar -xvf -C /var/lib/heimdall/data

wget -O - http://download6.snapshots.stakecraft.com/heimdall-mainnet_2024-03-24.tar | tar -xvf -C /var/lib/heimdall/data 

Start service and check the logs:

sudo systemctl start heimdalld.service
sudo journalctl -u heimdalld.service -f