HyperIndex

Turn any contract into a real-time API: history backfilled, every new block followed and reorgs handled for you.

Try it free
Read the HyperIndex docs →
Terminal
The HyperIndex terminal UI syncing an indexer across chains
faster than other indexers in the open benchmark
6–879x
Open indexer benchmark
reliability checks passed, from crash recovery and reorgs to RPC faults
50/50
Open indexer benchmark
head latency inside the indexer, from new block to stored row, excluding network time
<10ms
How it works

From contract to API in three steps

Define the contracts and events to index, shape the data in TypeScript handlers, then deploy to Envio Cloud or your own infrastructure.

  1. Say what to index

    List your contracts, events and chains in config.yaml. envio init writes it for you from a contract address.

    config.yaml
    name: erc20-indexer
    contracts:
      - name: ERC20
        events:
          - event: "Transfer(address indexed from, address indexed to, uint256 value)"
    chains:
      - id: 1 # Ethereum
        start_block: 0
        contracts:
          - name: ERC20
            address: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"
  2. Shape the data and write handlers

    Describe your entities in schema.graphql, then fill them from each event in a typed TypeScript handler.

    src/handlers/ERC20.ts
    import { indexer } from "envio";
    
    indexer.onEvent(
      { contract: "ERC20", event: "Transfer" },
      async ({ event, context }) => {
        const { from, to, value } = event.params;
        const [sender, receiver] = await Promise.all([
          context.Account.getOrCreate({ id: from, balance: 0n }),
          context.Account.getOrCreate({ id: to, balance: 0n }),
        ]);
        context.Account.set({ ...sender, balance: sender.balance - value });
        context.Account.set({ ...receiver, balance: receiver.balance + value });
      },
    );
  3. Deploy anywhere

    Push to your deployment branch and Envio Cloud builds and deploys it, or self-host it with Docker.

    terminal
    $ git push origin main
    # a new deployment builds; the current one keeps serving
Why HyperIndex

What HyperIndex replaces

The infrastructure a custom indexer needs you to write, test and maintain, built into HyperIndex.

Custom indexer compared with HyperIndex
Custom indexerHyperIndex
RPC polling, block range by block rangeBackfills at 100,000+ events/s
ABI decoding by handTyped handlers generated from your ABI
An API layer to buildGraphQL API generated from your schema
Reorg detection to write and testReorg rollback built in
Logging and metrics to wire upMetrics, logging and observability built in
Crash recovery to buildResumes from the last checkpoint
Per-chain indexers to wire togetherMany chains in one indexer
A test harness to build yourselfLocal dev environment and test framework
Ownership

No vendor lock-in

Everything you build on Envio stays yours to run, wherever you choose.

  • Public code

    Our licence lets you use and self-host it for your own projects. Reselling it as a hosted service isn't permitted.

  • Any EVM chain, via RPC

    HyperSync powers 81+ chains at full speed. On any other EVM chain, point your indexer at an RPC URL.

  • Self-host anywhere

    Run it on your own infrastructure with Docker, or let Envio Cloud run it for you.

Customer stories

HyperIndex in production

Teams serving production APIs from HyperIndex.

Revert Finance synced a PancakeSwap V3 subgraph stuck for 2 years in 10 days

2 years → 10 daysstuck on The Graph, synced on Envio
13PBscanned a month on Envio
2.3Mblocks a single HyperSync request can cover
The story

Revert Finance builds analytics and management tools for AMM liquidity providers. Its PancakeSwap V3 subgraph on The Graph had been stuck at 70% sync on BNB Smart Chain for over two years. A HyperIndex indexer synced all 1,711,569,200 events to 100% in 10 days, with HyperSync removing the RPC bottleneck.

FAQs

HyperIndex FAQ

Building, testing and deploying indexers, the chains and languages it supports, and what HyperIndex costs.

What is HyperIndex?

HyperIndex is Envio's multichain blockchain indexer. You write event handlers in TypeScript, point it at your contracts, and it turns their historical and live events into a database behind a GraphQL API, on any EVM chain, Solana or Fuel.

HyperIndex overview →

What's the difference between HyperIndex and HyperSync?

HyperIndex is the full indexing framework, with your schema, your handlers and a GraphQL API. HyperSync is the data engine that powers its backfills, and you can also query it directly for raw logs, transactions and traces in your own pipelines.

HyperIndex vs HyperSync →

How is HyperIndex different from a subgraph?

HyperIndex indexes from HyperSync instead of RPC, 6–879x faster than other indexers in the open benchmark, The Graph included. It also indexes many chains from one indexer and uses TypeScript handlers instead of AssemblyScript.

Envio vs The Graph →

Which chains does HyperIndex support?

Any EVM chain, Solana and Fuel. 81+ chains have HyperSync for the fastest backfills, and on any other EVM chain you point your indexer at an RPC URL.

Supported chains →

Is HyperIndex free to use?

HyperIndex is free to build with. On Envio Cloud the development plan is free, production plans start at $70 a month, and Dedicated plans are priced to your workload.

Hosting pricing →

Build your first API on HyperIndex

Start on the free development plan and turn your first contract into an API.

Try it free