For AI agents: the documentation index is at /llms.txt. Markdown versions of pages are available by appending .md to the URL.
Skip to main content

HyperSync: Ultra-Fast & Flexible Data API

What is HyperSync?​

HyperSync is a purpose-built data retrieval layer for onchain data, built from the ground up in Rust. It serves as an alternative to traditional JSON-RPC endpoints, letting you filter and select exactly the data you need. On the workloads in our performance benchmarks, scans that take hours or days over RPC complete in seconds.

HyperSync & HyperIndex

HyperSync is Envio's high-performance blockchain data engine that serves as a direct replacement for traditional RPC endpoints, delivering up to 2000x faster data access.

HyperIndex is built on top of HyperSync, providing a complete indexing framework with schema management, event handling, and GraphQL APIs.

Use HyperSync directly when you need raw blockchain data at maximum speed, or use HyperIndex when you need a full-featured indexing solution.

The Problem HyperSync Solves​

Traditional blockchain data access through JSON-RPC faces several limitations:

  • Speed constraints: Retrieving large amounts of historical data can take days
  • Query flexibility: Complex data analysis requires many separate calls
  • Cost inefficiency: Expensive for data-intensive applications

Key Benefits​

  • Exceptional Performance: Retrieve and process blockchain data up to 2000x faster than traditional RPC methods
  • Cryptographically Verified: As each block is ingested, its transactions and receipts are used to recompute the transactionsRoot and receiptsRoot in the block header, and data that doesn't match is refetched from another source. See Nodes silently miss events.
  • Comprehensive Coverage: Access data across 82+ EVM chains, Fuel and Solana (its own endpoint and Rust client), with new networks added regularly. EVM transaction traces are served from separate trace endpoints
  • Flexible Query Capabilities: Filter, select, and process exactly the data you need with powerful query options
  • Cost Efficiency: Dramatically reduce infrastructure costs for data-intensive applications
  • Simple Integration: Client libraries available for Python, Rust, Node.js, and Go

Performance Benchmarks​

HyperSync delivers transformative performance compared to traditional methods:

TaskTraditional RPCHyperSyncImprovement
Scan Arbitrum blockchain for sparse log dataHours/Days2 seconds~2000x faster
Fetch all Uniswap v3 PoolCreated events ethereumHoursSeconds~500x faster

Use Cases​

HyperSync powers a wide range of blockchain applications, enabling developers to build tools that would be impractical with traditional data access methods:

General Applications​

  • Blockchain Indexers: Build high-performance data indexers with minimal infrastructure
  • Data Analytics: Perform complex on-chain analysis in seconds instead of days
  • Block Explorers: Create responsive explorers with comprehensive data access
  • Monitoring Tools: Track blockchain activity with near real-time updates
  • Cross-chain Applications: Access unified data across multiple networks
  • ETL Pipelines: Create pipelines to extract and save data fast

Powered by HyperSync​

HyperIndex​

  • Faster blockchain indexing, measured in our open benchmark, across 82+ EVM chains and Fuel
  • Powers 100 plus applications like v4.xyz analytics

ChainDensity.xyz​

  • Fast transaction/event density analysis for any address
  • Generates insights in seconds that would take hours with traditional methods

Scope.sh​

  • Ultra-fast Account Abstraction (AA) focused block explorer
  • Fast historical data retrieval with minimal latency

LogTUI​

  • Terminal-based UI for finding all historical blockchain events
  • Built-in presets for 20+ protocols (Uniswap, Chainlink, Aave, ENS, etc.)
  • Try it: pnpx logtui aave arbitrum to track Aave events on Arbitrum in your terminal

Fetch Every Uniswap V3 Pool on Arbitrum​

This script streams every PoolCreated event from the Uniswap V3 factory on Arbitrum, from the first block to the chain head, and decodes each one. It needs Node.js 20 or newer, npm install @envio-dev/hypersync-client tsx, and an API token in ENVIO_API_TOKEN. Save it as pools.mts, so it runs as an ES module, and run npx tsx pools.mts.

pools.mts
import { Decoder, HypersyncClient } from "@envio-dev/hypersync-client";

const client = new HypersyncClient({
url: "https://arbitrum.hypersync.xyz",
apiToken: process.env.ENVIO_API_TOKEN!,
});

// Uniswap V3 factory on Arbitrum, and the topic0 of its PoolCreated event
const FACTORY = "0x1F98431c8aD98523631AE4a59f267346ea31F984";
const POOL_CREATED =
"0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118";

const decoder = Decoder.fromSignatures([
"PoolCreated(address indexed token0, address indexed token1, uint24 indexed fee, int24 tickSpacing, address pool)",
]);

const stream = await client.stream(
{
fromBlock: 0,
logs: [{ address: [FACTORY], topics: [[POOL_CREATED]] }],
fieldSelection: {
log: ["Topic0", "Topic1", "Topic2", "Topic3", "Data"],
},
},
{},
);

let pools = 0;
while (true) {
const res = await stream.recv();
if (res === null) break; // reached the chain head

const events = await decoder.decodeLogs(res.data.logs);
for (const event of events) {
if (!event) continue;
const [token0, token1, fee] = event.indexed.map((v) => v.val);
const pool = event.body[1].val;
if (pools < 3) console.log({ pool, token0, token1, fee });
pools++;
}
}

console.log(`${pools} Uniswap V3 pools created on Arbitrum`);

The stream pages through the chain for you, so there is no block range to manage. To try other filters without writing code, use the Query Builder.

On a free token the script can hit your rate limit partway through. The client then logs rate limited by server warnings, waits for the limit to reset and carries on, so the script still finishes, just more slowly. A plan with a higher limit avoids the wait.

Next Steps​

Note

Our documentation is continuously improving! If you have questions or need assistance, please reach out in our Discord community.