|
| 1 | +--- |
| 2 | +title: 'Envio' |
| 3 | +description: 'Index Sei smart contract data using Envio, a modular hyper-performant data indexing solution.' |
| 4 | +keywords: ['envio', 'hyperindex', 'hypersync', 'hyperrpc', 'blockchain indexer', 'graphql', 'real-time data'] |
| 5 | +--- |
| 6 | + |
| 7 | +## Envio |
| 8 | + |
| 9 | +Index Sei smart contract data using Envio, a modular hyper-performant data indexing solution. Envio offers three products you can use individually or together to fit your data needs on Sei. |
| 10 | + |
| 11 | +1. [HyperIndex](https://docs.envio.dev/docs/HyperIndex/overview), a fully customizable blockchain indexing framework that powers GraphQL APIs over Postgres |
| 12 | +2. [HyperSync](https://docs.envio.dev/docs/HyperSync/overview), a real-time data retrieval layer up to 2000x faster than traditional RPC |
| 13 | +3. [HyperRPC](https://docs.envio.dev/docs/HyperRPC/overview-hyperrpc), an extremely fast RPC for data-intensive queries |
| 14 | + |
| 15 | +> **New to Envio?** Jump straight to [How to Index Sei Smart Contract Data in Minutes using Envio](https://docs.envio.dev/blog/index-sei-smart-contracts-envio) for a step-by-step walkthrough that builds a USDC indexer on Sei in under five minutes. |
| 16 | +
|
| 17 | +| Field | Value | |
| 18 | +| ---------------------- | -------------------------------------------------------------------- | |
| 19 | +| Sei Chain ID | 1329 | |
| 20 | +| HyperSync URL Endpoint | `https://sei.hypersync.xyz` or `https://1329.hypersync.xyz` | |
| 21 | +| HyperRPC URL Endpoint | `https://sei.rpc.hypersync.xyz` or `https://1329.rpc.hypersync.xyz` | |
| 22 | + |
| 23 | +> Sei testnet is also supported, with HyperSync at [https://sei-testnet.hypersync.xyz](https://sei-testnet.hypersync.xyz) and HyperRPC at [https://sei-testnet.rpc.hypersync.xyz](https://sei-testnet.rpc.hypersync.xyz). |
| 24 | +
|
| 25 | +## Choosing a Product |
| 26 | + |
| 27 | +### HyperIndex |
| 28 | + |
| 29 | +**Best for:** projects that need a complete indexing solution with schema management, event handling, and a GraphQL API. |
| 30 | + |
| 31 | +* A full-featured indexing framework that transforms on-chain events into structured, queryable databases with GraphQL APIs |
| 32 | +* Configured with a YAML file, a GraphQL schema, and TypeScript, JavaScript, or ReScript event handlers |
| 33 | +* Supports multichain indexing, real-time indexing, reorg support, and factory (dynamic) contracts |
| 34 | +* Powered by HyperSync for historical backfill |
| 35 | + |
| 36 | +### HyperSync |
| 37 | + |
| 38 | +**Best for:** new projects designing their own data access layer, performance-critical workloads, advanced filtering, and full control over data formatting. |
| 39 | + |
| 40 | +* A purpose-built, high-performance data retrieval layer, built from the ground up in Rust as an alternative to traditional JSON-RPC endpoints |
| 41 | +* The raw blockchain data access layer that powers HyperIndex, delivering up to 2000x faster performance than traditional RPC endpoints |
| 42 | +* Client libraries available for Python, Rust, Node.js, and Go |
| 43 | +* Filter, select, and process exactly the data you need with powerful query options |
| 44 | + |
| 45 | +Common use cases include custom indexers, data analytics, block explorers, monitoring tools, cross-chain applications, and ETL pipelines. |
| 46 | + |
| 47 | +### HyperRPC |
| 48 | + |
| 49 | +**Best for:** drop-in replacements for existing RPC-based code, projects that need standard JSON-RPC interfaces, and teams without time for a deeper integration. |
| 50 | + |
| 51 | +* An extremely fast RPC designed specifically for data-intensive blockchain tasks |
| 52 | +* A specialized JSON-RPC endpoint optimized for data retrieval workflows |
| 53 | +* Drop-in compatible with existing tooling that uses standard RPC methods |
| 54 | +* Up to 5x faster than traditional nodes for data-intensive operations; uses HyperSync to fulfill requests |
| 55 | + |
| 56 | +Common use cases include historical data queries, log event filtering, block and transaction retrievals, and analytics applications. |
| 57 | + |
| 58 | +## Getting Started |
| 59 | + |
| 60 | +Make sure you have installed the [prerequisites](https://docs.envio.dev/docs/HyperIndex/quickstart#prerequisites), then initialize a new indexer. |
| 61 | + |
| 62 | +```bash theme={"dark"} |
| 63 | +pnpx envio init |
| 64 | +``` |
| 65 | + |
| 66 | +You'll follow interactive prompts to customize your indexer for Sei. A minimal Sei `config.yaml` looks like this. |
| 67 | + |
| 68 | +```yaml theme={"dark"} |
| 69 | +name: IndexerName |
| 70 | +description: Indexer Description |
| 71 | +chains: |
| 72 | + - id: 1329 # Sei |
| 73 | + start_block: START_BLOCK_NUMBER |
| 74 | + contracts: |
| 75 | + - name: ContractName |
| 76 | + address: |
| 77 | + - "0xYourContractAddress1" |
| 78 | + events: |
| 79 | + - event: Event |
| 80 | +``` |
| 81 | +
|
| 82 | +For more detail on configuring chains, schemas, and event handlers, see the [HyperIndex configuration guide](https://docs.envio.dev/docs/HyperIndex/configuration-file) and [Indexing Sei on Envio](https://docs.envio.dev/docs/HyperIndex/sei). |
| 83 | +
|
| 84 | +## Built with Envio |
| 85 | +
|
| 86 | +* [Indexer Explorer](https://envio.dev/explorer), browse public real-time indexers built on Envio |
| 87 | +* [Case studies](https://docs.envio.dev/blog/tags/case-studies), see real-world deployments and migrations |
| 88 | +* [Showcase](https://docs.envio.dev/showcase), explore live demos built with HyperIndex and HyperSync |
| 89 | +
|
| 90 | +## More Resources |
| 91 | +
|
| 92 | +* [HyperIndex Quickstart](https://docs.envio.dev/docs/HyperIndex/quickstart) |
| 93 | +* [Quickstart with AI](https://docs.envio.dev/docs/HyperIndex/quickstart-with-ai) |
| 94 | +* [Envio Cloud](https://docs.envio.dev/docs/HyperIndex/hosted-service) |
| 95 | +* [GitHub](https://github.com/enviodev/hyperindex) |
| 96 | +
|
| 97 | +## Support |
| 98 | +
|
| 99 | +Need help? Connect with the Envio team on [Discord](https://discord.gg/envio) or [Telegram](https://t.me/+kAIGElzPjApiMjI0). |
0 commit comments