Snapshot
Install Subsquid cli
npm install --global @subsquid/cli@latest
Buat 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
- Pindah ke VPS, ke folder
/proc/snapshot/query-gateway/keys
- https://app.subsquid.io/quests
- Upload ke CodeSpace, ke folder
/proc/snapshot/query-gateway/keys
Start Docker
docker compose up -d
build
npm ci
sqd build
sqd migration:apply
Run
sqd run .
Tunggu sampai di web nya jadi 100%
Setelah selesai
Stop proc menggunakan CTRL+C
Stop Docker
docker compose down -v