🚀 Blazing fast* and simple real-time blocks indexer for EVM based chains with GraphQL API available out of the box which can be quickly configured with environment variables and deployed anywhere with Docker. Details about deployment and configuration will be described soon.
* – the maximum indexing speed can be reached with Subsquid Gateways. The list of supported EVM chains can be found here.
More information about Squids and Subsquid protocol can be found in the offical documentation.
# 1. Install dependencies
npm ci
# 2. Start a Postgres database container and detach
sqd up
# 3. Build the squid
sqd build
# 4. Start both the squid processor and the GraphQL server
sqd run .A GraphiQL playground will be available at localhost:4350/graphql.
You can also start squid services one by one:
sqd process
sqd serveSquid tools assume a certain project layout:
- All compiled js files must reside in
liband all TypeScript sources insrc. The layout oflibmust reflectsrc. - All TypeORM classes must be exported by
src/model/index.ts(lib/modelmodule). - Database schema must be defined in
schema.graphql. - Database migrations must reside in
db/migrationsand must be plain js files. sqd(1)andsquid-*(1)executables consult.envfile for environment variables.