Hydra Indexer Gateway

May 31, 2021 ยท View on GitHub

Hydra Indexer Gateway is a GraphQL server exposing the indexed Substrate data (primarily, extrinsics and events), indexed by Hydra Indexer.

Installation

The project is built using Warthog library.

Local development

For local development, first inspect env.yml and generate a dev .env file using run yarn config:dev. Then the server can be run with yarn start:dev

Production/Docker

For production a pre-built Docker image in recommended. The following environment variables must be set:

VariableDescription
WARTHOG_STARTER_DB_DATABASEIndexer database name
WARTHOG_STARTER_DB_HOSTIndexer database host
WARTHOG_STARTER_DB_PORTIndexer database port
WARTHOG_STARTER_DB_USERNAMEUser to access the indexer database
WARTHOG_STARTER_DB_PASSWORDUser password
WARTHOG_STARTER_REDIS_URIRedis connection string (must be the same as used by the Indexer)
PORTPort at which the GraphQL server will listen for connections