tl;dr Access Liquify's Pocket Snapshotter here
If you're looking for Pocket native blockchain data snapshots, they are provided by Liquify LTD and can be viewed via the Explorer link: File Explorer here.
https://pocket-snapshot.liquify.com
Snapshots are updated every Monday at 00:00 UTC. The snapshots are generated on the Master (UK) and then sent over to the US and JP regions.
The pocket snapshot link above is a global endpoint which is available in 3 different regions (UK, US west, Japan). The individual regions can also be accessed on the following links.
- UK (Master):pocket-snapshot-uk.liquify.com
- US: pocket-snapshot-us.liquify.com
- JP: pocket-snapshot-jp.liquify.com
Note: If accessing the snapshots on Monday it may be best to use the UK (Master) endpoint since there will be a 4-12 hour delay in updating the slaves in the other regions.
The snapshot repos hold the last 3 weeks of snapshots. The latest one being referenced by the file latest.txt
and latest_compressed.txt
.
To copy-paste the commands below, please update POCKET_DATA_DIR
appropriately.
export POCKET_DATA_DIR=<absolute path to your data dir>
[ -d ${POCKET_DATA_DIR} ] || mkdir -p ${POCKET_DATA_DIR}
aria2c -s6 -x6 "https://pocket-snapshot.liquify.com/files/$(curl -s https://pocket-snapshot.liquify.com/files/latest.txt)"
tar xvf "$latestFile" -C ${POCKET_DATA_DIR}
The below snippet will download and extract the snapshot inline. This may be beneficial if you have constrained disk space and cannot afford to store both the temp archive and extracted datadir.
[ -d ${POCKET_DATA_DIR} ] || mkdir -p ${POCKET_DATA_DIR}
wget -c "https://pocket-snapshot.liquify.com/files/$(curl -s https://pocket-snapshot.liquify.com/files/latest.txt)" -O - \
| tar -xv -C ${POCKET_DATA_DIR}
[ -d ${POCKET_DATA_DIR} ] || mkdir -p ${POCKET_DATA_DIR}
aria2c -s6 -x6 "https://pocket-snapshot.liquify.com/files/$(curl -s https://pocket-snapshot.liquify.com/files/latest_compressed.txt)"
lz4 -c -d "$latestFile" | tar -x -C ${POCKET_DATA_DIR}
[ -d ${POCKET_DATA_DIR} ] || mkdir -p ${POCKET_DATA_DIR}
wget -c "https://pocket-snapshot.liquify.com/files/$(curl -s https://pocket-snapshot.liquify.com/files/latest_compressed.txt)" -O - \
| lz4 -d - | tar -xv -C ${POCKET_DATA_DIR}
For any snapshot related issues, please email Liquify or in the node-chat channel on discord.