- Node v16.x
- Docker
- Squid CLI
Navigate to the example folder.
npm ci
sqd build
# start the database
sqd up
# starts a long-running ETL and blocks the terminal
sqd process
# starts the GraphQL API server at localhost:4350/graphql
sqd serve
In order to verify the data, simply run the squid, and once it's done processing. In the GraphQL explorer, use the following query:
query Deposits {
accounts(orderBy: totalDeposits_DESC) {
id
totalDeposits
deposits {
amount
id
txHash
}
}
}
It'll match exactly with data/all-deposits.json
All the final data can be found in the data folder.