Deploy Envio Indexer
Scaffolding for an Envio indexer with GraphQL gateway
Just deployed
/var/lib/postgresql/data
Just deployed
indexer
Just deployed
gateway
Just deployed
Deploy and Host Envio Indexer on Railway
This is an installation of the Envio indexer, Hasura, PostgreSQL and a public-facing GraphQL gateway that will get you up and running with the Envio blockchain indexing framework.
About Hosting
- PostgreSQL server
- Envio indexer
- Performs the blockchain indexing
- Pre-configured to index ERC20
Transferevents on Ethereum mainnet and Base - Can be easily customised for your indexing needs
- Has variable definitions for the Envio HyperSync token and RPC URLs
- Hasura
- Private Hasura installation, which exposes a GraphQL server for the data output by the Envio indexer
- This is kept private to reduce the public surface area
- GraphQL gateway
- Lightweight node server that allows for GET/POST GraphQL queries
Why Deploy
- This template makes it easy to self-host an Envio indexer
Common Use Cases
- Tracking ERC20 balances
- Tracking ERC20 liquidity
- Tracking protocol treasuries
Dependencies for
- Envio HyperSync API token (docs)
Deployment Dependencies
- None
Next Steps
- Customise the Envio indexer
- Add the contract definitions in
/apps/indexer/custom/config.yaml - Add the contract ABIs in
/apps/indexer/custom/abis/ - Add required entities in
/apps/indexer/custom/schema.graphql - Add the contract event/block handlers in `/apps/indexer/custom/handlers/
- Add the contract definitions in
Template Content
indexer
0xJem/railway-envio-templateENVIO_API_TOKEN
API token for the Envio HyperSync service
gateway
0xJem/railway-envio-template