Skip to content

ImbueNetwork/imbue-subquery

Repository files navigation

SubQuery - Dictionary

This special SubQuery Project provides a dictionary of data that pre-indexes events on chain to dramatically improve indexing the performance of your own SubQuery Project, sometimes up to 10x faster.

It scans over the network, and simply records the module and method for every event/extrinsic on each block - please see the standard entities in schema.graphql.

If you want to create your SubQuery Dictionary to speed up indexing of your own Substrate chain, fork this project and let us know

Geting Started

1. Install dependencies

yarn

2. Generate types

yarn codegen

3. Build

yarn build

4. Run locally

yarn start:docker

5. Launch the playground

Head over to this

http://localhost:3000/

6. Query the extrinsics

In the playground above go and execute the query below

{
  query {
    extrinsics(first: 10) {
      nodes {
        id
        module
        blockHeight
      }
    }
  }
}

About

indexing imbue block events using subquery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published