🚀 Blazing fast* and simple real-time blocks indexer for Substrate 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 Substrate 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 serve
Squid tools assume a certain project layout:
- All compiled js files must reside in
lib
and all TypeScript sources insrc
. The layout oflib
must reflectsrc
. - All TypeORM classes must be exported by
src/model/index.ts
(lib/model
module). - Database schema must be defined in
schema.graphql
. - Database migrations must reside in
db/migrations
and must be plain js files. sqd(1)
andsquid-*(1)
executables consult.env
file for environment variables.