Your contracts as a GraphQL API and ClickHouse analytics

Turn blockchain data into a custom dataset: serve it as a production GraphQL API, analyse it in ClickHouse, or query Postgres directly on Dedicated.

Try it free
Read the quickstart →
Demo: a Swap entity in schema.graphql is stored in both Postgres and ClickHouse, so the same data serves a GraphQL API for an app and SQL analytics.
Compare the options

Envio Cloud, self-hosted or a script, side by side

Where each option fits, how fresh its data is, how you query it, how it handles reorgs, what your team operates and what it costs.

HyperIndex on Envio CloudLearn more →
Best for
Production APIs, app backends and live dashboards
Freshness
History backfilled, then every new block, live
How you query
GraphQL API; direct SQL and ClickHouse on Dedicated
Reorgs and restarts
Rolled back automatically; resumes from the last checkpoint
What you operate
Nothing: git push to deploy, with monitoring built in and alerts on paid plans
Cost
Free development plan; production from $70/month
HyperIndex, self-hostedLearn more →
Best for
Teams that must run everything in their own infrastructure
Freshness
History backfilled, then every new block, live
How you query
GraphQL API and SQL on your own Postgres or ClickHouse
Reorgs and restarts
Rolled back by HyperIndex; you run the servers
What you operate
The indexer, Postgres and Hasura, with Docker
Cost
No hosting fee; HyperSync usage on your API token
HyperSync scriptLearn more →
Best for
Research questions, reports, backtests and one-off backfills
Freshness
Whatever you fetch when the script runs
How you query
In your own code: JSON, Parquet or CSV
Reorgs and restarts
Up to your script; HyperSync flags reorgs with a rollback guard
What you operate
Nothing: a client library and an API token
Cost
Free API token; paid plans from $70/month
How it works

Your contracts as a live API, in three steps

Generate an indexer from your contract, shape the data your app needs, then deploy it and query it over GraphQL.

  1. Generate the indexer

    Point envio init at a contract address. It reads the ABI and writes the config, schema and handlers for you.

    terminal
    $ pnpx envio init -n uni-indexer \
        contract-import -c 0x1f98...F984 \
        explorer -b ethereum-mainnet --single-contract --all-events
  2. Shape your data

    Describe the entities your app needs in schema.graphql and 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 }) => {
        context.Transfer.set({
          id: `${event.chainId}_${event.block.number}_${event.logIndex}`,
          from: event.params.from,
          to: event.params.to,
          value: event.params.value,
        });
      },
    );
  3. Deploy and query

    Push to GitHub and Envio Cloud deploys it, backfills history and keeps it live. Your app queries the GraphQL endpoint.

    query.graphql
    query {
      Transfer(limit: 10, order_by: { value: desc }) {
        from
        to
        value
      }
    }
Customer stories

Production APIs running on Envio

Teams serving their apps and analysts from HyperIndex, and the results they report.

Sablier merged 36 subgraphs into 3 multichain Envio indexers

36 → 3subgraphs before, multichain indexers on Envio
82+chains supported on Envio including Solana
99.99%+HyperSync uptime, last 30 days
The story

Sablier streams tokens for vesting, payroll, airdrops and grants across EVM chains. It merged 36 subgraphs into 3 multichain HyperIndex indexers, with HyperSync cutting sync times from hours or days to minutes.

FAQs

Smart contract API and analytics FAQ

What to build with, how the data is served and queried, and what running it in production costs.

Should I build an indexer or write a HyperSync script?

An indexer when your product depends on the data and needs it kept current behind an API. A HyperSync script when you need raw data once, for a report, a backtest or your own pipeline. HyperIndex runs on HyperSync, so many teams use both.

HyperIndex vs HyperSync →

Can I index every contract that emits an event, like all ERC20s?

Yes. Wildcard indexing matches an event signature without a contract address, so one indexer can follow every ERC20 Transfer, or contracts a factory deploys without announcing them.

Wildcard indexing →

Turn your contracts into an API

Start on the free development plan and build a production API on your contracts.

Try it free