HyperSync
HyperSync is a blockchain data API that reads logs, transactions and blocks in bulk across 81+ chains, returning only the fields you ask for, so you don't make one RPC call per block.
With standard RPC, you'd need to scan every block and filter transactions one by one. HyperSync returns matching transactions across millions of blocks in a single request.
Standard RPC requires fetching logs block-by-block with eth_getLogs rate limits. HyperSync scans the entire chain history and returns transfer events in seconds.
DEX analytics require scanning every swap across thousands of pools. HyperSync filters by event signature across all contracts instantly.
USDC has millions of transfers. Traditional indexing takes days, HyperSync delivers results in seconds.
Analyzing DeFi protocol usage requires all contract interactions. HyperSync retrieves every transaction to a contract across its entire history.
Finding all NFT mints requires scanning Transfer events from zero address across every contract. HyperSync makes this global search fast.
Traces reveal internal transaction details not visible in logs. HyperSync retrieves all call traces to any contract across the entire blockchain history.
Finding all contract deployments requires scanning every create trace. HyperSync retrieves the complete history of contract creations instantly.
Over Solana RPC you would fetch each transaction and match programs in your own code. Solana HyperSync filters by program and instruction discriminator on the server.
Filter by program and a one byte discriminator on the server, then read only the fields you select.
{
"from_block": 0,
"transactions": [
{"from": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]},
{"to": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]}
],
"field_selection": {
"block": ["number", "timestamp", "hash"],
"transaction": ["block_number", "transaction_index", "hash", "from", "to"]
}
}curl -X POST https://eth.hypersync.xyz/query \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $ENVIO_API_TOKEN" \
-d '{
"from_block": 0,
"transactions": [
{"from": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]},
{"to": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]}
],
"field_selection": {
"block": ["number", "timestamp", "hash"],
"transaction": ["block_number", "transaction_index", "hash", "from", "to"]
}
}'const response = await fetch("https://eth.hypersync.xyz/query", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${process.env.ENVIO_API_TOKEN}`,
},
body: JSON.stringify({
"from_block": 0,
"transactions": [
{"from": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]},
{"to": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]}
],
"field_selection": {
"block": ["number", "timestamp", "hash"],
"transaction": ["block_number", "transaction_index", "hash", "from", "to"]
}
}),
});
const data = await response.json();
console.log(data);import { HypersyncClient } from "@envio-dev/hypersync-client";
const client = new HypersyncClient({
url: "https://eth.hypersync.xyz",
apiToken: process.env.ENVIO_API_TOKEN!,
});
const query = {
fromBlock: 0,
transactions: [{ from: ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"] }, { to: ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"] }],
fieldSelection: {
block: ["Number", "Timestamp", "Hash"],
transaction: ["BlockNumber", "TransactionIndex", "Hash", "From", "To"]
},
};
const res = await client.get(query);
console.log(res);use hypersync_client::{
Client,
net_types::{Query, LogFilter, TransactionFilter, TraceFilter, BlockField, TransactionField, LogField, TraceField},
};
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let client = Client::builder()
.url("https://eth.hypersync.xyz")
.api_token(std::env::var("ENVIO_API_TOKEN")?)
.build()?;
let query = Query::new()
.from_block(0)
.where_transactions(
TransactionFilter::all().and_from(["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"])?
.or(TransactionFilter::all().and_to(["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"])?),
)
.select_block_fields([BlockField::Number, BlockField::Timestamp, BlockField::Hash])
.select_transaction_fields([TransactionField::BlockNumber, TransactionField::TransactionIndex, TransactionField::Hash, TransactionField::From, TransactionField::To]);
let res = client.get(&query).await?;
println!("{:?}", res);
Ok(())
}package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
query := []byte(`{
"from_block": 0,
"transactions": [
{"from": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]},
{"to": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]}
],
"field_selection": {
"block": ["number", "timestamp", "hash"],
"transaction": ["block_number", "transaction_index", "hash", "from", "to"]
}
}`)
req, _ := http.NewRequest("POST", "https://eth.hypersync.xyz/query", bytes.NewReader(query))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("ENVIO_API_TOKEN"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}import asyncio
import os
import hypersync
async def main():
client = hypersync.HypersyncClient(
hypersync.ClientConfig(
url="https://eth.hypersync.xyz",
api_token=os.environ.get("ENVIO_API_TOKEN"),
)
)
query = hypersync.Query(
from_block=0,
transactions=[hypersync.TransactionSelection(from_=["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]), hypersync.TransactionSelection(to=["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"])],
field_selection=hypersync.FieldSelection(
block=["number", "timestamp", "hash"],
transaction=["block_number", "transaction_index", "hash", "from", "to"]
),
)
res = await client.get(query)
print(res)
asyncio.run(main())- to scan Arbitrum's history for sparse log data, against hours or days over RPC
- 2 seconds
- HyperSync benchmarks
- p95 response time, with 91ms at p99
- 6.6ms
- blocks a single HyperSync request can cover
- 2.3M
How HyperSync differs from JSON-RPC
The parts of bulk reads over RPC that make them slow and fragile, replaced by a single query.
| JSON-RPC | HyperSync |
|---|---|
eth_getLogs over small block ranges | Whole-chain queries, streamed |
Thousands of paginated calls | Filters and field selection on the server |
Retries and backoff you write yourself | Clients that wait and retry on rate limits |
A provider per chain | One API token for every chain |
Limits on loaded data and egress | No limits on loaded data, unlimited egress |
A separate call for each log's transaction and block | Joins return them in the same query, as MIP-16 does on HyperRPC |
Plain JSON responses and no caching | Query caching to cut egress cost, and binary formats for efficient queries |
JSON you reshape for analytics | JSON or Parquet output, CSV from Python |
Built for whole-chain reads
Logs, transactions, blocks and traces with field selection and joins, streamed or written to Parquet, with a rollback guard for reorgs.
Logs, transactions, blocks, traces
Query every table, with traces on supported chains.
Field selection
Return only the columns you need, so responses stay small.
Joins
Pull the transactions and blocks behind matching logs in the same query.
Streaming
Stream results from any block, with requests running in parallel.
Rollback guard
Detect reorgs between queries and refetch any data that went stale.
Parquet output
Write columnar files straight into your analytics stack.
Solana HyperSync
Slots, instruction calls and account activity, with its own client.
Query Builder
Build and test queries in the browser before writing code.
Where HyperSync fits
The solutions HyperSync powers, from research pipelines to the data under every HyperIndex indexer.
- Blockchain APIs & analyticsYour own dataset from onchain data: a production GraphQL API for your app, or analytics in ClickHouse.
- Raw chain dataVerified raw blockchain data, filtered across whole chains, in seconds instead of days of RPC calls.
- Event streamingWebhooks and streams triggered by onchain changes, with decoded event data.
- AI agentsReliable onchain data for your AI agents, or agents that build production tools on Envio.
Research running on HyperSync
Teams reading whole chains through HyperSync for research and trading pipelines, and the results they report.
analysed 7,000 ERC-4626 vaults across 10 blockchains with data from HyperSync
Trading Strategy runs algorithmic trading research in Python. With data from HyperSync, it analysed 7,000 ERC-4626 vaults across 10 blockchains in one study, inside its existing research and trading pipelines.
Start free, scale by request rate
Every plan works on all 81+ chains, with no limits on loaded data and unlimited egress. Personal accounts get one free API token. Paid plans from $70 a month add a higher request rate with optional pay-as-you-go overage, and custom plans cover bigger workloads.
- DevelopmentFreeOne free API token for personal accounts
- Starter$70/mo100 requests a minute, optional overage
- Pro$480/mo1,000 requests a minute, optional overage
- CustomEnterpriseCustomCustom rate limits, volume discounts and SLA
HyperSync FAQ
Supported chains and clients, queries and decoding, reorgs, traces, tokens and rate limits.
What is HyperSync?
HyperSync is a purpose-built data retrieval layer for onchain data, written in Rust. It's an alternative to JSON-RPC for reading logs, transactions, blocks and traces in bulk, and it's the engine behind HyperIndex.
HyperSync overview →How much faster is it than RPC?
It depends on the query. In the docs benchmark, a scan of Arbitrum's history for sparse log data takes hours or days over RPC and about two seconds on HyperSync.
Performance benchmarks →When should I use HyperIndex instead?
When your product depends on the data. HyperIndex keeps a persistent, reorg-safe dataset behind a GraphQL API. Use HyperSync directly for raw data in your own pipeline, analytics and chain-wide scans.
HyperIndex vs HyperSync →Which chains does HyperSync support?
81+ EVM chains and Fuel, each on its own URL such as eth.hypersync.xyz. Solana has its own HyperSync at solana.hypersync.xyz.
Supported chains →Run your first HyperSync query
Pick a client, create a token and query any chain from its first block.