tmcgroul / indexer-setup

Hydra Indexer setups for various chains

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Indexer setups

Hydra Indexer setups for various chains.

To run a Hydra indexer for a specific chain, navigate to the corresponding folder and run

docker-compose up

Then navigate to localhost:4010/console and explore the extrinsic and event queries!

Getting the indexer in sync with the chain may take considerable time. To keep track of the status, use the following query.

query {
    indexerStatus {
        head #current indexer block
        chainHeight #current chain height
        inSync
    }
}

Type definitons updates

Most chains publish type definitions as an npm package. Some indexers (e.g. shiden or bifrost) has a script gen-types.js for generating the json type defintions. To update, run from the corresponding folder

yarn upgrade 
node gen-types.js

About

Hydra Indexer setups for various chains


Languages

Language:JavaScript 100.0%