Skip to main content
Version: v2

Getting Started

Indexer Initalization

Prerequisites

The following are the prerequisite packages required for Envio:

  1. Node.js (use v18 or newer)
  2. pnpm (use v8 or newer)
  3. Docker Desktop

Docker is required specifically for running the Envio indexer locally.

Once you have completed the prerequisites step, you can initialize your own indexer via the following options:

Quickstart

Generate an indexer quickly based on one or more smart contract(s) deployed on a blockchain.

More information on the Quickstart can be found in this documentation.

Templates

Select either the ERC20, Greeter, or Blank template following the envio init command.

More information on the Greeter template is available.

Examples

Clone one of the example indexers that have been built using Envio. Reference indexers can be found via our Explorer, Tutorials, or in our GitHub.

Please take note of the difference in the version of Envio which the indexer was built on and the latest version on npm. There may be some adjustments required to the indexer to be compatible with the latest version of Envio.

Indexer Configuration

Indexers generated using the Quickstart, templates, or examples will work without any further configuration.

Users can further configure their indexers to perform custom logic, by modifying the 3 files:

(* depending on the language chosen for the indexer)

Run the Indexer

Run locally

Users can run the indexer locally without deploying, using Docker and Hasura.

There is more information on running the indexer locally.

Deploy to Hosted Service

Once the indexer has been configured, you can easily deploy your indexer to Envio's hosted service and start querying your endpoint.

More information on the hosted service is available.