Snapshot
Install Subsquid cli
npm install --global @subsquid/cli@latest
Create Folder & init
mkdir proc
cd proc
sqd init snapshot -t https://github.com/subsquid-quests/snapshot-squid
cd snapshot
Download key
- VPS
- CodeSpace
- https://app.subsquid.io/quests
- Move it to VPS, into this folder
/proc/snapshot/query-gateway/keys
- https://app.subsquid.io/quests
- Upload to CodeSpace, into this folder
/proc/snapshot/query-gateway/keys
Start Docker
docker compose up -d
build
npm ci
sqd build
sqd migration:apply
Run
sqd run .
Wait after 100%
After done
Stop proc use CTRL+C
Stop Docker
docker compose down -v