This is a squid project that shows and interpretes the power of subsquid. It indexes EVM logs and transactions, with pagination and filtering the Azuki's ERC721 contract address.
- Install the Squid CLI:
npm i -g @subsquid/cli
- Install the dependencies
npm i
- Build and run the squid, make sure to have docker running.
sqd build
sqd up
sqd migration:generate
sqd process
The indexing will start. you could explore queries using localhost:4350/graphql
or Postman, but you have to start the server in a separate window
#start server
sqd serve
query Azuiki {
azukiEventApprovals(where: { blockNumber_gt: 13992222 }) {
blockNumber
eventName
id
owner
}
}
query Azuki {
azukiEventTransfers(limit: 30, offset: 10) {
id
to
from
eventName
blockTimestamp
}
}