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.
Choose how to get your data
Pick by how long you need the data. An API your product depends on runs on HyperIndex. A question you need answered once is a HyperSync script.
HyperIndex
The long-term path. Describe your data in a schema, write TypeScript handlers, and HyperIndex keeps it backfilled and live. Query it over GraphQL, or SQL on Postgres and ClickHouse.
Learn more →Envio Cloud
Runs your HyperIndex API in production. Deploy with a git push and get monitoring, plus alerts and backups on paid plans. Self-hosting is supported too.
Learn more →HyperSync
The one-off path. Pull logs, transactions, blocks and, on request, traces into a Python, TypeScript or Rust script as JSON or Parquet, analyse them and move on.
Learn more →
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.
- 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
- 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
- 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
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.
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-eventsShape 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, }); }, );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 } }
Why teams build their data layer on Envio
Benchmarked speed, one API across chains, GraphQL and SQL on the same data, and reorgs and restarts handled for you.
6–879x faster in our open benchmark
Measured against other indexers on the same workloads, with every tool's output checked against ground truth in CI. Envio Indexer also had the lowest median head latency in the reliability tests.
One API across chains
Index many EVM chains in one indexer and query them from one endpoint. Solana and Fuel are supported too.
GraphQL and SQL on the same data
Store each entity in Postgres, ClickHouse or both with one @storage directive, so your app and analysts read the same dataset.
Reorgs and restarts handled
Reorged blocks roll back automatically, and a restart resumes from the last checkpoint.
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
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.
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 →Beyond your contract's API
The indexer behind your API can also deliver events, feed agents or replace a subgraph.
Raw chain data
Verified raw blockchain data, filtered across whole chains, in seconds instead of days of RPC calls.
- HyperSync
- Solana HyperSync
- HyperRPC
Event streaming
Webhooks and streams triggered by onchain changes, with decoded event data.
- HyperIndex
- Envio Cloud
- HyperSync
- Solana HyperSync
AI agents
Reliable onchain data for your AI agents, or agents that build production tools on Envio.
- HyperIndex
- Envio Cloud
- HyperSync
- HyperRPC
Subgraph migration
Move your subgraphs off The Graph. Run them unchanged on the Subgraph Engine preview, have Envio migrate and host them, or port them to HyperIndex with AI.
- Subgraph Hosting
- HyperIndex
- Envio Cloud
Turn your contracts into an API
Start on the free development plan and build a production API on your contracts.