Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.01 KB

README.md

File metadata and controls

50 lines (41 loc) · 1.01 KB

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
      }
    }
  }
}