# Envio docs: HyperIndex performance and reference > Config schema reference, observability, performance tuning, benchmarks, supported chains and licensing. Generated at build time from the pages of https://docs.envio.dev. Each page below is the full markdown of one docs page, after a `` line. Append `.md` to that URL to fetch the page on its own. The index of every page is https://docs.envio.dev/llms.txt. Context files, one per product area: - [llms-hyperindex.txt](https://docs.envio.dev/llms-hyperindex.txt): HyperIndex core, about 47k tokens. Build, run and test an indexer: getting started, config.yaml, schema, handlers, CLI, testing, troubleshooting. - [llms-hyperindex-advanced.txt](https://docs.envio.dev/llms-hyperindex-advanced.txt): HyperIndex advanced features, about 32k tokens. Factories, the Effect API, wildcard indexing, preload, contract state, IPFS, HyperSync and RPC sources, reorgs, WebSockets. - llms-hyperindex-reference.txt (this file): HyperIndex performance and reference, about 27k tokens. Config schema reference, observability, performance tuning, benchmarks, supported chains and licensing. - [llms-hyperindex-examples.txt](https://docs.envio.dev/llms-hyperindex-examples.txt): HyperIndex examples and tutorials, about 16k tokens. Example indexers (Uniswap v4, Sablier, Velodrome and Aerodrome) and EVM tutorials. - [llms-hyperindex-migration.txt](https://docs.envio.dev/llms-hyperindex-migration.txt): HyperIndex migration guides, about 14k tokens. Upgrade a V2 indexer to V3, or migrate from The Graph, Ponder or Alchemy, by hand or with AI. - [llms-hyperindex-solana-fuel.txt](https://docs.envio.dev/llms-hyperindex-solana-fuel.txt): HyperIndex on Solana and Fuel, about 21k tokens. Solana programs (instruction and slot handlers, decoding, config) and Fuel contracts. - [llms-envio-cloud.txt](https://docs.envio.dev/llms-envio-cloud.txt): Envio Cloud, about 24k tokens. Deploy, monitor and manage hosted indexers: features, CLI, billing, organisations, self-hosting. - [llms-hypersync.txt](https://docs.envio.dev/llms-hypersync.txt): HyperSync core, about 36k tokens. EVM data: quickstart, API tokens, clients, query reference, curl, stream tuning, supported networks, tutorials. - [llms-hypersync-solana-fuel.txt](https://docs.envio.dev/llms-hypersync-solana-fuel.txt): HyperSync for Solana and Fuel, about 15k tokens. Solana HyperSync (query schema, client, curl examples) and HyperFuel, HyperSync for the Fuel network. - [llms-hyperrpc.txt](https://docs.envio.dev/llms-hyperrpc.txt): HyperRPC, about 6k tokens. Read-only JSON-RPC endpoint powered by HyperSync: supported methods, usage and supported networks. Pages in this file: - Configuration Schema Reference - Observability - Optimise HyperIndex indexer performance - Database Performance Optimization - Chain head latency in HyperIndex indexers - Speed up HyperIndex historical sync - Benchmark a HyperIndex indexer and find bottlenecks - HyperIndex Benchmarks - Chains supported by HyperIndex, with chain IDs - Any EVM with RPC - Local chain - Anvil - Local chain - Hardhat - HyperIndex licence and end-user licence agreement --- # Configuration Schema Reference > Deep-linkable reference for every field and definition in the HyperIndex V3 config.yaml schema. Static, deep-linkable reference for the V3 `config.yaml` schema. > Tip: Use the Table of Contents to jump to a field or definition. ## Top-level Properties - [name](#name) (required) - [description](#description) - [schema](#schema) - [handlers](#handlers) - [full_batch_size](#fullbatchsize) - [storage](#storage) - [disable_default_cross_chain](#disabledefaultcrosschain) - [ecosystem](#ecosystem) - [contracts](#contracts) - [chains](#chains) (required) - [rollback_on_reorg](#rollbackonreorg) - [save_full_history](#savefullhistory) - [field_selection](#fieldselection) - [raw_events](#rawevents) - [address_format](#addressformat) - [bytes_type](#bytestype) - [strict_hex_type](#stricthextype) ### name {#name} Name of the project - **type**: `string` Example (config.yaml): ```yaml name: MyIndexer ``` ### description {#description} Description of the project - **type**: `string | null` Example (config.yaml): ```yaml description: Greeter indexer ``` ### schema {#schema} Custom path to schema.graphql file - **type**: `string | null` Example (config.yaml): ```yaml schema: ./schema.graphql ``` ### handlers {#handlers} Optional relative path to handlers directory for auto-loading. Defaults to 'src/handlers' if not specified. - **type**: `string | null` ### full_batch_size {#fullbatchsize} Target number of events to be processed per batch. Set it to smaller number if you have many Effect API calls which are slow to resolve and can't be batched. (Default: 5000) - **type**: `integer | null` - **bounds**: min: 0, format: `uint64` Example (config.yaml): ```yaml full_batch_size: 5000 ``` ### storage {#storage} Where the indexer keeps entities. Postgres is always enabled and keeps them by default. Set `clickhouse: true` and mark an entity `@storage(clickhouse: true)` in the schema to keep it in ClickHouse, or set `clickhouse: {default: true}` to keep every unmarked entity there. Entities kept only in ClickHouse aren't served over GraphQL. - **type**: `anyOf(object | null)` Variants: - `1`: [StorageConfig](#def-storageconfig) - `2`: `null` Example (config.yaml): ```yaml storage: postgres: default: true column_name_format: snake_case clickhouse: true ``` ### disable_default_cross_chain {#disabledefaultcrosschain} Make entities and effect caches per-chain instead of shared across every chain (recommended). Sharing then becomes explicit - add `@crossChain` to an entity in schema.graphql or `crossChain: true` to an effect. (default: false) - **type**: `boolean | null` ### ecosystem {#ecosystem} Ecosystem of the project. - **type**: `anyOf(enum (1 values) | null)` Variants: - `1`: [EcosystemTag](#def-ecosystemtag) - `2`: `null` Example (config.yaml): ```yaml ecosystem: evm ``` ### contracts {#contracts} Global contract definitions that must contain all definitions except addresses. You can share a single handler/abi/event definitions for contracts across multiple chains. - **type**: `array | null` Example (config.yaml): ```yaml contracts: - name: Greeter events: - event: "NewGreeting(address user, string greeting)" ``` ### chains {#chains} Configuration of the blockchain chains that the project is deployed on. - **type**: `array>` - **items**: `object` - **items ref**: [Chain](#def-chain) Example (config.yaml): ```yaml chains: - id: 1 start_block: 0 contracts: - name: Greeter address: "0x9D02A17dE4E68545d3a58D3a20BbBE0399E05c9c" ``` ### rollback_on_reorg {#rollbackonreorg} A flag to indicate if the indexer should rollback to the last known valid block on a reorg. This currently incurs a performance hit on historical sync and is recommended to turn this off while developing (default: true) - **type**: `boolean | null` Example (config.yaml): ```yaml rollback_on_reorg: true ``` ### save_full_history {#savefullhistory} A flag to indicate if the indexer should save the full history of events. This is useful for debugging but will increase the size of the database (default: false) - **type**: `boolean | null` Example (config.yaml): ```yaml save_full_history: false ``` ### field_selection {#fieldselection} Select the block and transaction fields to include in all events globally - **type**: `anyOf(object | null)` Variants: - `1`: [FieldSelection](#def-fieldselection) - `2`: `null` Example (config.yaml): ```yaml field_selection: transaction_fields: - hash block_fields: - miner ``` ### raw_events {#rawevents} If true, the indexer will store the raw event data in the database. This is useful for debugging, but will increase the size of the database and the amount of time it takes to process events (default: false) - **type**: `boolean | null` Example (config.yaml): ```yaml raw_events: true ``` ### address_format {#addressformat} Address format for Ethereum addresses: 'checksum' or 'lowercase' (default: checksum) - **type**: `anyOf(enum (2 values) | null)` Variants: - `1`: [AddressFormat](#def-addressformat) - `2`: `null` ### bytes_type {#bytestype} How the `Bytes` scalar in schema.graphql is represented. `hex` keeps 0x-prefixed hex strings stored as text, `uint8array` exposes `Uint8Array` values in handlers and stores raw bytes (BYTEA in Postgres, String in ClickHouse). (default: hex) - **type**: `anyOf(oneOf(const hex | const uint8array) | null)` Variants: - `1`: [BytesType](#def-bytestype) - `2`: `null` ### strict_hex_type {#stricthextype} If true, the `Hex` type of bytes params, block and transaction hashes and `Bytes` fields is `0x${string}` instead of `string` (default: false) - **type**: `boolean | null` ## Definitions ### StorageConfig {#def-storageconfig} - **type**: `object` Properties: - `postgres`: `anyOf(boolean | null | object)` – Always enabled. Accepts `true` or an options object. - `clickhouse`: `anyOf(boolean | null | object)` – Whether to enable ClickHouse (default: false). Accepts a boolean or an options object. Example (config.yaml): ```yaml storage: postgres: # Entities without an @storage directive land here default: true # Columns become snake_case in the database, while GraphQL and # handler types keep the schema.graphql casing column_name_format: snake_case clickhouse: default: false ``` ### EcosystemTag {#def-ecosystemtag} - **type**: `enum (1 values)` - **allowed**: `evm` Example (config.yaml): ```yaml ecosystem: evm ``` ### GlobalContract {#def-globalcontract} - **type**: `object` - **required**: `name`, `events` Properties: - `name`: `string` – A unique project-wide name for this contract (no spaces) - `abi_file_path`: `string | null` – Relative path (from config) to a json abi. If this is used then each configured event should simply be referenced by its name - `handler`: `string | null` – Optional relative path to a file where handlers are registered for the given contract. If not provided, handlers can be auto-loaded from src directory. - `events`: `array>` – A list of events that should be indexed on this contract Example (config.yaml): ```yaml contracts: - name: Greeter events: - event: "NewGreeting(address user, string greeting)" ``` ### EventConfig {#def-eventconfig} - **type**: `object` - **required**: `event` Properties: - `event`: `string` – The human readable signature of an event 'eg. Transfer(address indexed from, address indexed to, uint256 value)' OR a reference to the name of an event in a json ABI file defined in your contract config. A provided signature will take precedence over what is defined in the json ABI - `name`: `string | null` – Name of the event in the HyperIndex generated code. When ommitted, the event field will be used. Should be unique per contract - `field_selection`: `anyOf(object | null)` – Select the block and transaction fields to include in the specific event Example (config.yaml): ```yaml contracts: - name: Greeter events: - event: "Assigned(address indexed recipientId, uint256 amount, address token)" name: Assigned field_selection: transaction_fields: - transactionIndex ``` ### FieldSelection {#def-fieldselection} - **type**: `object` Properties: - `transaction_fields`: `array | null` – The transaction fields to include in the event, or in all events if applied globally - Available values: `transactionIndex`, `hash`, `from`, `to`, `gas`, `gasPrice`, `maxPriorityFeePerGas`, `maxFeePerGas`, `cumulativeGasUsed`, `effectiveGasPrice`, `gasUsed`, `input`, `nonce`, `value`, `v`, `r`, `s`, `contractAddress`, `logsBloom`, `root`, `status`, `yParity`, `accessList`, `maxFeePerBlobGas`, `blobVersionedHashes`, `type`, `l1Fee`, `l1GasPrice`, `l1GasUsed`, `l1FeeScalar`, `gasUsedForL1`, `authorizationList` - `block_fields`: `array | null` – The block fields to include in the event, or in all events if applied globally - Available values: `parentHash`, `nonce`, `sha3Uncles`, `logsBloom`, `transactionsRoot`, `stateRoot`, `receiptsRoot`, `miner`, `difficulty`, `totalDifficulty`, `extraData`, `size`, `gasLimit`, `gasUsed`, `uncles`, `baseFeePerGas`, `blobGasUsed`, `excessBlobGas`, `parentBeaconBlockRoot`, `withdrawalsRoot`, `l1BlockNumber`, `sendCount`, `sendRoot`, `mixHash` Example (config.yaml): ```yaml events: - event: "Assigned(address indexed user, uint256 amount)" # can be within an event as shown here, or globally for all events field_selection: transaction_fields: - transactionIndex block_fields: - miner ``` ### Chain {#def-chain} - **type**: `object` - **required**: `id`, `start_block` Properties: - `id`: `integer` – The public blockchain chain ID. - `skip`: `boolean | null` – Excludes the chain from indexing and migrations. Code generation is unaffected. For testing, prefer using a test framework instead. - `rpc`: `anyOf(anyOf(string | object | array>) | null)` – RPC configuration for your indexer. If not specified otherwise, for chains supported by HyperSync, RPC serves as a fallback for added reliability. For others, it acts as the primary data-source. HyperSync offers significant performance improvements, up to 2000x faster than traditional RPC. - `hypersync_config`: `anyOf(object | null)` – Optional HyperSync Config for additional fine-tuning - `max_reorg_depth`: `integer | null` – The number of blocks from the head that the indexer should account for in case of reorgs. - `block_lag`: `integer | null` – The number of blocks behind the chain head that the indexer should lag. Useful for avoiding reorg issues by indexing slightly behind the tip. - `start_block`: `anyOf(integer | enum (1 values))` – The block at which the indexer should start ingesting data, or "latest" to start from the chain's current head block when the indexer is first deployed. Once resolved, the concrete block is persisted and reused every time the indexer resumes normally (for example recovering from a crash), so downtime is backfilled instead of skipped. Running `envio start`/`dev` with -r (--restart) resets this like any other config change: "latest" resolves again, against the head at that time. - `end_block`: `integer | null` – The block at which the indexer should terminate. - `contracts`: `array | null` – All the contracts that should be indexed on the given chain Example (config.yaml): ```yaml chains: - id: 1 start_block: 0 end_block: 19000000 contracts: - name: Greeter address: "0x1111111111111111111111111111111111111111" # Excluded from indexing and migrations, but still code-generated - id: 137 skip: true start_block: 0 ``` ### RpcSelection {#def-rpcselection} - **type**: `anyOf(string | object | array>)` Variants: - `1`: `string` - `2`: [Rpc](#def-rpc) - `3`: `array>` ### Rpc {#def-rpc} - **type**: `object` - **required**: `url` Properties: - `url`: `string` – The RPC endpoint URL. An entry whose url is empty, for example `${RPC_URL:-}` with the variable unset, is ignored. - `for`: `anyOf(oneOf(const sync | const fallback | const realtime) | null)` – Determines if this RPC is for historical sync, real-time chain indexing, or as a fallback. If not specified, defaults to "fallback" when HyperSync is available for the chain, or "sync" otherwise. - `ws`: `string | null` – Optional WebSocket endpoint URL (wss:// or ws://) for real-time block header notifications via eth_subscribe("newHeads"). Provides lower latency than HTTP polling for detecting new blocks. - `headers`: `object | null` – Optional HTTP headers sent with every request to this RPC endpoint, e.g. an Authorization bearer token for gated endpoints. Values support `${ENV_VAR}` interpolation. - `initial_block_interval`: `integer | null` – The starting interval in range of blocks per query - `backoff_multiplicative`: `number | null` – After an RPC error, how much to scale back the number of blocks requested at once - `acceleration_additive`: `integer | null` – Without RPC errors or timeouts, how much to increase the number of blocks requested by for the next batch - `interval_ceiling`: `integer | null` – Do not further increase the block interval past this limit - `backoff_millis`: `integer | null` – After an error, how long to wait before retrying - `fallback_stall_timeout`: `integer | null` – If a fallback RPC is provided, the amount of time in ms to wait before kicking off the next provider - `query_timeout_millis`: `integer | null` – How long to wait before cancelling an RPC request - `polling_interval`: `integer | null` – How frequently (in milliseconds) to check for new blocks in realtime. Default is 1000ms. Note: Setting this higher than block time does not reduce RPC usage as every block is still fetched to check for reorgs. Example (config.yaml): ```yaml chains: - id: 1 start_block: 0 rpc: - url: https://eth.llamarpc.com for: sync headers: Authorization: "Bearer ${ENVIO_RPC_API_KEY}" - url: https://eth.llamarpc.com ws: wss://eth.llamarpc.com for: realtime - url: https://fallback.example.com for: fallback ``` ### For {#def-for} - **type**: `oneOf(const sync | const fallback | const realtime)` Variants: - `1`: `const sync` - `2`: `const fallback` - `3`: `const realtime` ### HypersyncConfig {#def-hypersyncconfig} - **type**: `object` - **required**: `url` Properties: - `url`: `string` – URL of the HyperSync endpoint (default: The most performant HyperSync endpoint for the network) Example (config.yaml): ```yaml chains: - id: 1 start_block: 0 hypersync_config: url: https://1.hypersync.xyz ``` ### StartBlock {#def-startblock} A chain's configured start block: either a concrete block number or the literal "latest". Config parsing never touches the network, so `Latest` stays unresolved here - it's resolved once at runtime, right before the indexer's first-ever persisted state is written, and never re-resolved on a normal resume. Note: the `-r`/`--restart` CLI flag wipes the DB and re-deploys from scratch, so it re-resolves "latest" too - "resume" here means the opposite: recovering from a crash or process restart without `-r`. - **type**: `anyOf(integer | enum (1 values))` Variants: - `1`: `integer` - `2`: [StartBlockTag](#def-startblocktag) ### StartBlockTag {#def-startblocktag} - **type**: `enum (1 values)` - **allowed**: `latest` ### ChainContract {#def-chaincontract} - **type**: `object` - **required**: `name` Properties: - `name`: `string` – A unique project-wide name for this contract if events and handler are defined OR a reference to the name of contract defined globally at the top level - `address`: `anyOf(anyOf(string | integer) | array)` – A single address or a list of addresses to be indexed. This can be left as null in the case where this contracts addresses will be registered dynamically. - `start_block`: `integer | null` – The block at which the indexer should start ingesting data for this specific contract. If not specified, uses the chain start_block. Can be greater than the chain start_block for more specific indexing. - `abi_file_path`: `string | null` – Relative path (from config) to a json abi. If this is used then each configured event should simply be referenced by its name - `handler`: `string | null` – Optional relative path to a file where handlers are registered for the given contract. If not provided, handlers can be auto-loaded from src directory. - `events`: `array>` – A list of events that should be indexed on this contract Example (config.yaml): ```yaml chains: - id: 1 start_block: 0 contracts: - name: Greeter address: - "0x1111111111111111111111111111111111111111" events: - event: Transfer(address indexed from, address indexed to, uint256 value) ``` ### Addresses {#def-addresses} - **type**: `anyOf(anyOf(string | integer) | array)` Variants: - `1`: `anyOf(string | integer)` - `2`: `array` Example (config.yaml): ```yaml chains: - id: 1 start_block: 0 contracts: - name: Greeter address: - "0x1111111111111111111111111111111111111111" - "0x2222222222222222222222222222222222222222" ``` ### AddressFormat {#def-addressformat} - **type**: `enum (2 values)` - **allowed**: `checksum`, `lowercase` ### BytesType {#def-bytestype} How the schema.graphql `Bytes` scalar reaches handlers and storage. - **type**: `oneOf(const hex | const uint8array)` Variants: - `1`: `const hex` - `2`: `const uint8array` ## Removed in V3 The following V2 options have been removed and are no longer accepted in `config.yaml`: - `output` - generated types are always emitted to `.envio/`. - `unordered_multichain_mode` - unordered is now the only mode. The V2 `multichain: ordered` opt-in has also been removed. - `event_decoder` - the Rust-based decoder is the only implementation. - `loaders` - Preload Optimization is now always on. - `preload_handlers` - now always enabled. - `preRegisterDynamicContracts` - no longer needed. - `rpc_config` - replaced by `rpc` (see above). - `networks` - renamed to `chains`. - `confirmed_block_threshold` - renamed to `max_reorg_depth`. --- # Observability > Monitor a HyperIndex indexer in development and production - Terminal UI, logs, Prometheus metrics, health checks, indexing status via the _meta query, the Dev Console, and Envio Cloud monitoring. HyperIndex gives you several complementary ways to understand what your indexer is doing - while you develop locally and once it's running in production: - **[Terminal UI](#terminal-ui)** - a live dashboard in your terminal. - **[Logs](#logs)** - structured logs from the runtime and your handlers. - **[Metrics](#metrics)** - Prometheus metrics at the `/metrics` endpoint. - **[Health checks](#health-checks)** - a `/healthz` endpoint for liveness probes. - **[Indexing status](#indexing-status)** - per-chain progress via the `_meta` GraphQL query. - **[Dev Console](#dev-console)** - a web UI for debugging local development. - **[Envio Cloud](#envio-cloud)** - managed dashboards, alerts, and metrics for [hosted indexers](https://docs.envio.dev/docs/HyperIndex/hosted-service). :::info Endpoints & port When the indexer starts it serves an HTTP server (default port **`9898`**) that exposes `/metrics`, `/metrics/runtime`, and `/healthz`. Change the port with `ENVIO_INDEXER_PORT`: ```bash ENVIO_INDEXER_PORT=9899 envio start ``` ::: ## Terminal UI Running `envio dev` (or `envio start`) launches a live **Terminal UI (TUI)** that shows the state of your indexer at a glance: - Per-chain sync status and block numbers - Events processed and indexing progress - The GraphQL (Hasura) endpoint, and the [Dev Console](#dev-console) URL when running `envio dev` - HyperSync rate-limit information when you're being throttled ### Disabling the TUI The TUI is enabled by default in interactive terminals. It is **automatically disabled** when the process is non-interactive - when `stdout` is not a TTY, in CI (`CI` is set), under AI coding agents, or when `TERM=dumb`. To disable it explicitly (for example, to capture plain logs), set `ENVIO_TUI`. `ENVIO_TUI=true` forces it on: ```bash export ENVIO_TUI=false ``` :::tip Keep the TUI while capturing logs The TUI can sometimes obscure errors. To keep the dashboard **and** write full logs to a file at the same time: ```bash export LOG_STRATEGY="both-prettyconsole" export LOG_FILE="./debug.log" ``` ::: ## Logs HyperIndex uses [pino](https://github.com/pinojs/pino/) for high-performance structured logging. Logs come from two sources: the indexer runtime, and your own handler code. ### Log levels The runtime supports the following levels, in ascending order of severity. Levels prefixed with `u` are **user-level** logs emitted from your handlers and loaders via the `context.log` API. | Level | Description | | --- | --- | | `trace` | Most verbose; detailed tracing information | | `debug` | Debugging information for developers | | `info` | General information about system operation (**default**) | | `udebug` | User-level debug logs | | `uinfo` | User-level info logs | | `uwarn` | User-level warning logs | | `uerror` | User-level error logs | | `warn` | System warnings | | `error` | System errors | | `fatal` | Critical errors causing shutdown | Configure levels with environment variables: ```bash LOG_LEVEL="info" # Level for console output (default: info) FILE_LOG_LEVEL="trace" # Level for file output (default: trace) ``` Use `LOG_LEVEL="silent"` to suppress console logs entirely. ### Log format The default format is human-readable with color-coded levels. Switch formats with `LOG_STRATEGY` - the [ECS](https://www.elastic.co/guide/en/ecs/current/index.html) formats are convenient for shipping logs to the Elastic Stack (Kibana): ```bash LOG_STRATEGY="console-pretty" # Default: human-readable, colored console logs LOG_STRATEGY="console-raw" # Raw pino JSON to console LOG_STRATEGY="ecs-file" # ECS-formatted JSON to a file LOG_STRATEGY="ecs-console" # ECS-formatted JSON to console LOG_STRATEGY="ecs-console-multistream" # ECS-formatted JSON to console, through a multistream LOG_STRATEGY="file-only" # pino JSON to a file (most efficient) LOG_STRATEGY="both-prettyconsole" # Pretty console + pino JSON to a file # Where file-based strategies write to (default: logs/envio.log) LOG_FILE="./logs/envio.log" ``` ### User logs Inside your handlers, use the logging methods on the `context` object. They map to the `u*` levels above: ```typescript // Inside your handler context.log.debug(`Processing event in block: ${event.block.number}`); context.log.info(`Handled transfer of ${event.params.value}`); context.log.warn(`Unexpected state for ${event.params.from}`); context.log.error(`Failed to process event: ${event.transaction.hash}`); // Pass an Error as the second argument to capture a stack trace: context.log.error("Failed to process event", new Error("boom")); // Or pass an object for structured logging: context.log.info("Processing blockchain event", { blockNumber: event.block.number, contract: "ERC20", data: { from: event.params.from, to: event.params.to }, }); ``` For production analytics, pair the ECS log strategies with a tool like Kibana to build dashboards and alerts from your logs. :::tip Performance Logging isn't free - excessive logging (especially per-event `debug`/`trace` logs on high-throughput chains) can slow indexing down. Keep only the logs that serve a real observability need, and lean on [metrics](#metrics) rather than logs for high-frequency signals. ::: ## Metrics HyperIndex exposes [Prometheus](https://prometheus.io/) metrics so you can plug into your existing monitoring stack (Prometheus, Grafana, Datadog, etc.). :::info Stability As of **v3.0.0** the `/metrics` endpoint is official: metric names follow Prometheus conventions, time is measured in seconds, and the metric surface is covered by semver and documented here. The one exception to the seconds convention is `envio_progress_latency`, which is reported in milliseconds. ::: ### The `/metrics` endpoint The running indexer serves Prometheus metrics at: ``` http://localhost:9898/metrics ``` A separate `/metrics/runtime` endpoint exposes Node.js process metrics (CPU, memory, garbage collection, event-loop lag) from a dedicated registry, isolated from the index metrics: ``` http://localhost:9898/metrics/runtime ``` ### Fetching metrics from the CLI You don't need to `curl` the endpoint by hand - the CLI fetches metrics from a locally running indexer for you: ```bash envio metrics # raw Prometheus metrics from /metrics envio metrics runtime # runtime metrics from /metrics/runtime ``` The command talks to the indexer on the port set by `ENVIO_INDEXER_PORT`, falling back to `9898`. ### Available metrics Every metric is prefixed with `envio_`. Counters and gauges are labeled where noted (e.g. by `chainId`, `contract`, `event`). #### Progress & sync status | Metric | Type | Description | | --- | --- | --- | | `envio_progress_block` | gauge | Latest block number processed and stored in the database. Labeled by `chainId`. | | `envio_progress_events` | gauge | Number of events processed and reflected in the database. Labeled by `chainId`. | | `envio_progress_ready` | gauge | Whether the chain is fully synced to the head (`1` = synced). Labeled by `chainId`. | | `envio_progress_latency` | gauge | Milliseconds between the latest processed event being created on chain and being written to storage. Labeled by `chainId`. | | `envio_progress_block_time_seconds` | gauge | Unix timestamp of the block the chain has processed up to. Subtract it from the scrape time to see how far behind chain time the indexer is. Best effort in realtime mode, absent during backfill. It stops changing once a chain reaches its `endBlock`, so leave those chains out of lag alerts. Labeled by `chainId`. | #### Event processing | Metric | Type | Description | | --- | --- | --- | | `envio_processing_seconds` | counter | Cumulative time spent executing event handlers during batch processing. | | `envio_processing_handler_seconds` | counter | Cumulative time spent inside individual event handler executions. Labeled by `contract` and `event`. | | `envio_processing_handler_total` | counter | Total number of individual event handler executions. Labeled by `contract` and `event`. | | `envio_processing_max_batch_size` | gauge | Maximum number of items to process in a single batch. | | `envio_processing_stalled_on_fetch_seconds` | counter | Time the indexer had nothing to process while waiting for events to be fetched. Waiting at the chain head for new blocks is not counted. | | `envio_processing_stalled_on_storage_write_seconds` | counter | Time the indexer paused processing because too many changes were still waiting to be written. | #### Entity preloading | Metric | Type | Description | | --- | --- | --- | | `envio_preload_seconds` | counter | Cumulative time spent preloading entities during batch processing. | | `envio_preload_handler_seconds` | counter | Wall-clock time spent inside individual preload handler executions. Labeled by `contract` and `event`. | | `envio_preload_handler_seconds_total` | counter | Cumulative time spent in preload handlers (can exceed wall-clock time due to parallel execution). Labeled by `contract` and `event`. | | `envio_preload_handler_total` | counter | Total number of individual preload handler executions. Labeled by `contract` and `event`. | #### Storage | Metric | Type | Description | | --- | --- | --- | | `envio_storage_write_seconds` | counter | Cumulative time spent writing batch data to storage. Labeled by `storage`. | | `envio_storage_write_total` | counter | Total number of batch writes to storage. Labeled by `storage`. | | `envio_storage_load_seconds` | counter | Time spent loading data from storage. Labeled by `operation` and `storage`. | | `envio_storage_load_seconds_total` | counter | Cumulative time spent loading data from storage during indexing. Labeled by `operation` and `storage`. | | `envio_storage_load_total` | counter | Number of successful storage load operations. Labeled by `operation` and `storage`. | | `envio_storage_load_size` | counter | Cumulative number of records loaded from storage. Labeled by `operation` and `storage`. | | `envio_storage_load_where_size` | counter | Cumulative number of filter conditions (`where` items) used in storage load operations. Labeled by `operation` and `storage`. | #### Data source & fetching | Metric | Type | Description | | --- | --- | --- | | `envio_fetching_block_range_seconds` | counter | Cumulative time spent fetching block ranges. Labeled by `chainId`. | | `envio_fetching_block_range_total` | counter | Total number of block range fetch operations. Labeled by `chainId`. | | `envio_fetching_block_range_events_total` | counter | Cumulative number of events fetched across all block range operations. Labeled by `chainId`. | | `envio_fetching_block_range_size` | counter | Cumulative number of blocks covered across all fetch operations. Labeled by `chainId`. | | `envio_fetching_block_range_parse_seconds` | counter | Cumulative time spent parsing block range fetch responses. Labeled by `chainId`. | | `envio_source_request_total` | counter | Number of requests made to data sources. Labeled by `source`, `chainId`, and `method`. | | `envio_source_request_seconds_total` | counter | Cumulative time spent on data source requests. Labeled by `source`, `chainId`, and `method`. | | `envio_source_response_blocks_total` | counter | Number of blocks a data source returned, summed over its responses, before the indexer drops blocks no event needs. Only sources whose responses are measured in blocks report it. Labeled by `source`, `chainId`, and `method`. | | `envio_source_response_empty_total` | counter | Number of responses with no blocks at all: a range the source scanned and matched nothing in. Compare with `envio_source_request_total`. Labeled by `source`, `chainId`, and `method`. | | `envio_source_height_stream_connects_total` | counter | Number of times a source's height subscription connected. Labeled by `source` and `chainId`. One more connect than disconnects means the stream is up; equal counts mean it is down and the indexer is polling instead. Zero connects is normal while a chain is still backfilling - subscriptions only open once a chain reaches the head. | | `envio_source_height_stream_disconnects_total` | counter | Number of times a source's height subscription lost a connection. Labeled by `source`, `chainId` and `reason`, and absent until the first disconnect. `rotated` is a connection that served its time, `unsubscribed` is the source being benched; any other reason ended a connection early. Failed retries aren't counted, so this measures outages rather than their length. | | `envio_source_known_height` | gauge | Latest known block number reported by the data source. Labeled by `source` and `chainId`. | #### Indexing pipeline | Metric | Type | Description | | --- | --- | --- | | `envio_indexing_known_height` | gauge | Latest known block number reported by the active indexing source. Labeled by `chainId`. | | `envio_indexing_concurrency` | gauge | Number of executing concurrent queries to the chain data source. Labeled by `chainId`. | | `envio_indexing_buffer_size` | gauge | Current number of items in the indexing buffer. Labeled by `chainId`. | | `envio_indexing_buffer_block` | gauge | Highest block number fully fetched by the indexer. Labeled by `chainId`. | | `envio_indexing_idle_seconds` | counter | Time the indexer source syncing has been idle. A high value may indicate a bottleneck. Labeled by `chainId`. | | `envio_indexing_partitions` | gauge | Number of partitions used to split fetching logic. Labeled by `chainId`. | | `envio_indexing_addresses` | gauge | Number of address registrations on chain (static and dynamic). Labeled by `chainId`. An address shared by N contracts counts N times. | | `envio_indexing_contract_addresses` | gauge | Number of address registrations per contract on chain (static and dynamic). Labeled by `chainId` and `contract`. | | `envio_indexing_target_buffer_size` | gauge | Indexer-wide target buffer size shared across all chains. The queue may exceed it, but the indexer always tries to keep the buffer filled up to this target. | | `envio_indexing_end_block` | gauge | The block number to stop indexing at (inclusive). Labeled by `chainId`. | | `envio_indexing_source_querying_seconds` | counter | Time spent performing queries to the chain data source. Labeled by `chainId`. | | `envio_indexing_source_waiting_seconds` | counter | Time the indexer has been waiting for new blocks. Labeled by `chainId`. | #### Reorgs & rollbacks | Metric | Type | Description | | --- | --- | --- | | `envio_reorg_detected_total` | counter | Total number of reorgs detected. | | `envio_reorg_detected_block` | gauge | Block number where a reorg was last detected. | | `envio_reorg_threshold` | gauge | Whether indexing is currently within the reorg threshold. | | `envio_rollback_enabled` | gauge | Whether rollback on reorg is enabled. | | `envio_rollback_total` | counter | Number of successful rollbacks on reorg. | | `envio_rollback_seconds` | counter | Total time spent on rollbacks. | | `envio_rollback_events` | counter | Number of events rolled back on reorg. | | `envio_rollback_target_block` | gauge | Block number the last reorg was rolled back to. Labeled by `chainId`. | | `envio_rollback_history_prune_total` | counter | Number of successful entity history prunes. Labeled by `entity`. | | `envio_rollback_history_prune_seconds` | counter | Total time spent pruning entity history outside the reorg threshold. Labeled by `entity`. | #### Effect API Metrics for the [Effect API](https://docs.envio.dev/docs/HyperIndex/effect-api). | Metric | Type | Description | | --- | --- | --- | | `envio_effect_call_seconds` | counter | Processing time taken to call the Effect function. Labeled by `effect` and `scope`. | | `envio_effect_call_seconds_total` | counter | Cumulative time spent calling the Effect function during indexing. Labeled by `effect` and `scope`. | | `envio_effect_call_total` | counter | Cumulative number of resolved Effect function calls. Labeled by `effect` and `scope`. | | `envio_effect_active_calls` | gauge | Number of Effect function calls currently running. Labeled by `effect` and `scope`. | | `envio_effect_cache` | gauge | Number of items in the effect cache. Labeled by `effect` and `scope`. | | `envio_effect_cache_invalidations` | counter | Number of effect cache invalidations. Labeled by `effect`. | | `envio_effect_queue` | gauge | Number of effect calls waiting in the rate-limit queue. Labeled by `effect` and `scope`. | | `envio_effect_queue_wait_seconds` | counter | Time spent waiting in the rate-limit queue. Labeled by `effect`. | #### System info | Metric | Type | Description | | --- | --- | --- | | `envio_info` | gauge | Information about the indexer. Labeled by `version`. | | `envio_process_start_time_seconds` | gauge | Start time of the process since the Unix epoch, in seconds. | | `envio_process_metric_time_seconds` | gauge | The time these metrics were collected. Use it to tell how fresh a snapshot is, or to measure rates between two snapshots. | | `envio_process_elapsed_seconds` | gauge | How long the indexer has been running. Divide a cumulative seconds metric by this to get the share of the run it took. | ### Scraping with Prometheus Add a scrape job to your `prometheus.yml`: ```yaml scrape_configs: - job_name: "envio-indexer" metrics_path: "/metrics" static_configs: - targets: ["localhost:9898"] # use your ENVIO_INDEXER_PORT if you set one ``` ### Key metrics to watch - **`envio_progress_ready`** - confirm your indexer is caught up to the chain head. - **`envio_progress_block`** - track indexing progress over time. - **`envio_processing_handler_seconds`** - identify slow event handlers by contract and event. - **`envio_indexing_idle_seconds`** - a high value may indicate the data source sync is a bottleneck. - **`envio_reorg_detected_total`** - track how frequently chain reorganizations occur. ### Finding the bottleneck A slow indexer is usually waiting on one of two things: fetching events, or writing them. Since v3.5, two counters attribute that wait directly, so you no longer have to infer it from handler timings: - **`envio_processing_stalled_on_fetch_seconds`** - the indexer had nothing to process because events hadn't arrived yet. A high rate means **fetching** is the bottleneck: check data-source latency and whether it can take more concurrency. Time spent waiting at the chain head for new blocks is deliberately excluded, so a fully synced indexer doesn't look stalled. - **`envio_processing_stalled_on_storage_write_seconds`** - the indexer paused because too many changes were still queued for writing. A high rate means **storage writes** are the bottleneck: cross-check `envio_storage_write_seconds` and your [database performance](https://docs.envio.dev/docs/HyperIndex/database-performance-optimization). Both are cumulative counters, so read them as a rate. To turn one into a share of total runtime, divide by `envio_process_elapsed_seconds`: ```promql # Fraction of the last 5 minutes spent stalled on fetches (0 to 1) rate(envio_processing_stalled_on_fetch_seconds[5m]) # Same, but across the whole run so far envio_processing_stalled_on_fetch_seconds / envio_process_elapsed_seconds ``` The same division works for any cumulative seconds metric - `envio_processing_seconds / envio_process_elapsed_seconds` gives the share of the run spent inside event handlers. If you scrape snapshots by hand rather than with Prometheus, `envio_process_metric_time_seconds` tells you when each was collected. For a step-by-step walkthrough of capturing snapshots and working from a slow indexer to the metric that explains it, see [Benchmarking Your Indexer](https://docs.envio.dev/docs/HyperIndex/benchmarking). ## Health checks The indexer exposes a `/healthz` endpoint that returns HTTP `200` once the service is up. It's designed as a machine-readable liveness probe - for example, a Kubernetes `livenessProbe`: ``` GET http://localhost:9898/healthz → 200 OK ``` ```yaml livenessProbe: httpGet: path: /healthz port: 9898 initialDelaySeconds: 10 periodSeconds: 10 ``` ## Indexing status To track per-chain indexing progress from your application, query the official `_meta` field on the GraphQL API. This is the most reliable way to know whether a chain has caught up before you read indexed data - useful for health checks, custom dashboards, and waiting for a write to be indexed before refetching. ```graphql { _meta { chainId progressBlock eventsProcessed bufferBlock firstEventBlock sourceBlock readyAt isReady startBlock endBlock } } ``` Result: ```json { "data": { "_meta": [ { "chainId": 1, "progressBlock": 22817138, "eventsProcessed": 2380000, "bufferBlock": 22820499, "firstEventBlock": 21688545, "sourceBlock": 23368264, "readyAt": null, "isReady": false, "startBlock": 0, "endBlock": null }, { "chainId": 10, "progressBlock": 137848820, "eventsProcessed": 2455000, "bufferBlock": 137873621, "firstEventBlock": 130990676, "sourceBlock": 141168975, "readyAt": null, "isReady": false, "startBlock": 0, "endBlock": null } ] } } ``` ### Metadata fields #### Configuration fields These fields are populated on indexer startup and don't change during the indexer process. - `chainId` - Chain ID the metadata belongs to. Results are sorted by `chainId` in ascending order. Use `_meta(where: { chainId: { _eq: 1 } })` to get the metadata for a specific chain. - `startBlock` - Start block number from `config.yaml`. - `endBlock` - End block number from `config.yaml`. #### Transactional fields These fields are updated in the batch write transaction, and are guaranteed to be written to the database at the same time. This means `progressBlock` and `eventsProcessed` increase at the same moment the data for the processed events is written to the database and becomes available for querying. - `progressBlock` - Block number fully processed and written to the DB. - `eventsProcessed` - Number of processed events written to the DB (reorg resistant). #### Throttled fields These fields are updated outside of the batch transaction and throttled to avoid performance overhead. There might be a small delay between the event processing and the metadata update. - `bufferBlock` - Block number of the latest event ready for processing. - `firstEventBlock` - Block number of the first processed event for the chain. - `sourceBlock` - The latest known block number of the actively used data source (the chain head). - `readyAt` - Timestamp when the chain finished historical sync or reached its end block. - `isReady` - Whether the chain finished historical sync or reached its end block. ## Dev Console When you run `envio dev`, HyperIndex enables the **Dev Console** - a web UI for debugging your indexer during local development, available at [envio.dev/console](https://envio.dev/console). The TUI also prints the link on startup. The Dev Console connects to your locally running indexer, so your data never leaves your machine. It's available in development mode only - `envio start` (production) does not expose console state. Use it to inspect indexing state and to manage the [Effect API](https://docs.envio.dev/docs/HyperIndex/effect-api) cache while iterating. :::note Local GraphQL (Hasura) `envio dev` also starts a local [Hasura](https://docs.envio.dev/docs/HyperIndex/navigating-hasura) console at [http://localhost:8080](http://localhost:8080) for exploring your indexed data. The default admin secret is `testing`. Disable Hasura with `ENVIO_HASURA=false`. ::: ## Envio Cloud If you deploy to [Envio Cloud](https://docs.envio.dev/docs/HyperIndex/hosted-service), observability is fully managed for you - no need to run Prometheus or ship logs yourself: - **[Real-time dashboard](https://docs.envio.dev/docs/HyperIndex/hosted-service-monitoring#dashboard-overview)** - sync status, events processed, and per-chain progress bars. - **[Logs](https://docs.envio.dev/docs/HyperIndex/hosted-service-monitoring#logging)** - live and historical logs with level filtering, integrated and configured by Envio. - **[Built-in alerts](https://docs.envio.dev/docs/HyperIndex/hosted-service-monitoring#built-in-alerts)** - get notified via Discord, Slack, Telegram, Email, or a generic webhook when your endpoint goes down or your indexer stops processing. Envio Cloud also exposes the same **Prometheus metrics** described above, so you can scrape them into your own Grafana or Datadog. On Cloud the endpoint is served under your deployment's URL: ``` /hyperindex/metrics ``` :::info Version requirement Prometheus metrics on Envio Cloud require indexers deployed with version **3.0.0** or higher. ::: See [Monitoring Your Indexer](https://docs.envio.dev/docs/HyperIndex/hosted-service-monitoring) and the [Envio Cloud features](https://docs.envio.dev/docs/HyperIndex/hosted-service-features) page for details, and [Envio Cloud CLI](https://docs.envio.dev/docs/HyperIndex/envio-cloud-cli) for monitoring deployments from the command line. --- # Optimise HyperIndex indexer performance > An overview of HyperIndex performance across historical sync, latency at the chain head and query speed, with links to benchmarking and database tuning guides. ## Quick Navigation - [Benchmarking](https://docs.envio.dev/docs/HyperIndex/benchmarking) - measure your indexer and find its bottleneck - [Database Performance Optimization](https://docs.envio.dev/docs/HyperIndex/database-performance-optimization) - [Historical Sync](https://docs.envio.dev/docs/HyperIndex/historical-sync) - [Latency at the Head](https://docs.envio.dev/docs/HyperIndex/latency-at-head) - [Preload Optimization](https://docs.envio.dev/docs/HyperIndex/preload-optimization) - batched entity reads, always on in V3 - [Observability](https://docs.envio.dev/docs/HyperIndex/observability) - the metrics, logs, and status endpoints behind all of the above There are different types of performance that you may be concerned about when indexing using HyperIndex. There is the speed of historical sync (populating the db from scratch), the latency of indexing new blocks/transactions, and the speed of querying the data once it is indexed. This page will cover some of the ways you can optimize the performance of your HyperIndex setup. --- # Optimizing Database Performance in HyperIndex > Learn how to optimize HyperIndex databases with indices and schema design for faster queries. ## Introduction As your indexed data grows, database performance becomes critical to maintaining responsive queries and efficient operations. This guide explains how to optimize your HyperIndex database through strategic indexing and schema design to ensure your applications remain fast even as data volume increases. ## Understanding Database Indices Database indices are special data structures that improve the speed of data retrieval operations. Think of them like the index at the back of a book - rather than scanning every page (row) to find what you're looking for, indices allow the database to quickly locate the relevant data. ### Why Indices Matter Without proper indices, your database must perform "full table scans" when searching for data, examining every row to find matches. As your data grows, this becomes increasingly inefficient: | Data Size | Without Indices | With Proper Indices | | --- | --- | --- | | 1,000 records | ~10ms | ~1ms | | 100,000 records | ~500ms | ~2ms | | 1,000,000+ records | 5+ seconds | ~5ms | _Note: Actual performance varies based on hardware, query complexity, and database load._ ## Creating Custom Indices in Your Schema HyperIndex provides several ways to define indices in your GraphQL schema, giving you control over database performance. ### Single-Column Indices The simplest form of indexing is on individual fields using the `@index` directive: ```graphql type Transaction { id: ID! userAddress: String! @index tokenAddress: String! @index amount: BigInt! timestamp: BigInt! @index } ``` In this example: - Queries filtering on `userAddress` (e.g., finding all transactions for a user) - Queries filtering on `tokenAddress` (e.g., finding all transactions for a token) - Queries filtering on `timestamp` (e.g., finding transactions in a date range) All become significantly faster because the database can use the indices to quickly locate matching records. ### Composite Indices for Multi-Field Queries When you frequently query using multiple fields together, composite indices provide better performance: ```graphql type Transfer @index(fields: ["from", "to", "tokenId"]) { id: ID! from: String! @index to: String! @index tokenId: BigInt! value: BigInt! timestamp: BigInt! } ``` This creates: 1. Individual indices on `from` and `to` fields 2. A composite index on the combination of `from`, `to`, and `tokenId` Composite indices are particularly valuable for complex queries that filter on multiple columns simultaneously, such as "find all transfers from address X to address Y for token Z." ### Descending Indices To sort a field in descending order within a composite index, pass it as a `[field, "DESC"]` pair. This suits queries that read the most recent records first: ```graphql type PoolDayData @index(fields: ["poolId", ["date", "DESC"]]) { id: ID! poolId: String! date: Timestamp! } ``` ### Automatic Indices HyperIndex automatically creates indices for: - All `ID` fields - All fields marked with `@derivedFrom` There's no need to manually add indices for these fields. ## Deferred Index Creation Indices make writes slower, and a backfill is nothing but writes. Since v3.5, HyperIndex builds the indices your schema declares in one pass *after* the backfill completes, rather than up front. Some users see a **2.5x backfill speedup** from this alone. Nothing to configure. Two things change in what you'll observe: - Querying the database directly mid-backfill is slower, because the declared indices don't exist yet. - Near the end of the backfill, the indexer pauses to create them and logs that it's doing so. On a large database this takes a while - it's progress, not a hang. ### Indices created on demand A [`getWhere`](https://docs.envio.dev/docs/HyperIndex/event-handlers#retrieving-entities-by-field) call on a field with no index creates one the first time a handler asks for it. That means `getWhere` works on any entity field except `@derivedFrom` fields, and you don't need to declare `@index` for the fields your handlers filter on - HyperIndex works out which indices your handlers need. Building the index happens inside that first `getWhere` call, so indexing waits until it's done. On a large table this can take a while. A field marked `@index` is normally indexed in the pass at the end of the backfill instead, but a `getWhere` on it during the backfill builds its index on the spot in the same way. `@index` is for the queries **you** serve. Declare it on the fields your GraphQL consumers filter and sort by, since HyperIndex can't know those from your handler code: ```graphql type Transfer { id: ID! userAddress: String! @index timestamp: BigInt! } ``` ## Strategic Indexing: When to Use Each Type ### When to Use Single-Column Indices Use single-column indices when: - You frequently filter by a specific field - You sort results by a specific field - The field has high "cardinality" (many different values) **Example use case**: Indexing `userAddress` in a transaction table when users frequently look up their transaction history. ### When to Use Composite Indices Use composite indices when: - You frequently query using multiple fields together - Your queries consistently filter on the same combination of fields - You need to optimize complex queries with multiple conditions **Example use case**: Indexing `(tokenAddress, timestamp)` together when users frequently view token transaction history within specific time ranges. ## Performance Tradeoffs While indices improve query performance, they come with tradeoffs: ### Write Performance Impact Each index requires additional updates when data is inserted or modified: - **No indices**: Fastest write performance, but slow reads - **Few targeted indices**: Slight write slowdown (5-10%), much faster reads - **Many indices**: Noticeable write slowdown (15%+), fastest possible reads For most applications, the read performance benefits outweigh the write performance costs, especially since blockchain data is primarily read-intensive. ### Storage Considerations Indices increase database storage requirements: - Each index typically requires 2-10 bytes per row - For large datasets (millions of records), this can add up - Consider storage requirements when designing indices for very large tables ## Practical Examples ### Optimizing Token Transfer Queries Consider a token transfer entity: ```graphql type TokenTransfer { id: ID! token: Token! @index from: String! @index to: String! @index amount: BigInt! blockNumber: BigInt! @index timestamp: BigInt! @index } ``` With this schema, the following queries will be optimized: - Find all transfers for a specific token - Find all transfers from a specific address - Find all transfers to a specific address - Find transfers within a specific block range - Find transfers within a specific time range ### Optimizing Complex NFT Marketplace Queries For an NFT marketplace with listings and sales: ```graphql type NFTListing @index(fields: ["collection", "status", "price"]) @index(fields: ["seller", "status"]) { id: ID! collection: String! @index tokenId: BigInt! seller: String! @index price: BigInt! status: String! @index # "active", "sold", "cancelled" createdAt: BigInt! @index } ``` This schema efficiently supports: - Finding all active listings for a collection, sorted by price - Finding all listings by a specific seller with a specific status - Finding recently created listings across all collections ## Optimizing GraphQL Queries Beyond schema design, how you write your GraphQL queries affects performance: ### Fetch Only What You Need Request only the fields you actually need: ```graphql # Good query { TokenTransfer(where: { token_id: { _eq: "0x123" } }, limit: 10) { id amount } } # Bad - fetches unnecessary fields query { TokenTransfer(where: { token_id: { _eq: "0x123" } }, limit: 10) { id amount from to timestamp blockNumber transactionHash # other fields you don't need } } ``` ### Use Pagination for Large Result Sets Always paginate large result sets: ```graphql query { TokenTransfer( where: { token_id: { _eq: "0x123" } } limit: 20 offset: 40 # Skip first 40 results (page 3 with 20 items per page) ) { id amount } } ``` ### Use Timestamps for Efficient Polling When building applications that poll for updates, use timestamps to fetch only new data: ```graphql query getUpdatedTransfers($lastFetched: numeric!) { TokenTransfer(where: { timestamp: { _gt: $lastFetched } }) { id from to amount } } ``` ## Diagnosing Slow Queries If your GraphQL queries are returning slowly, follow this workflow: ### 1. Check if you have indices on filtered fields The most common cause of slow queries is missing indices. If you're filtering or sorting by a field that doesn't have `@index`, add it: ```graphql # Before - slow queries on userAddress type Transaction { id: ID! userAddress: String! } # After - fast queries on userAddress type Transaction { id: ID! userAddress: String! @index } ``` After adding indices, you'll need to redeploy (on Envio Cloud) or restart locally for the schema changes to take effect. ### 2. Reduce result set size Large unbounded queries are a common cause of slow responses. Always use `limit` and check that you're not requesting more data than needed. ## Summary Proper database indexing is essential for maintaining performance as your indexed data grows. By strategically placing indices on frequently queried fields and field combinations, you can ensure fast query responses even with large datasets. **Key takeaways:** - Use `@index` for frequently filtered or sorted individual fields - Use composite indices for multi-field query patterns - Consider performance tradeoffs for write-heavy applications - Design your schema and queries with performance in mind from the start - Always use pagination for large result sets --- # Understanding Chain Head Latency > How HyperIndex keeps indexers close to the chain head with HyperSync, where latency is lowest, and how each chain in a multichain indexer syncs independently. Maintaining low latency at the chain head is crucial for ensuring timely data updates in your indexed data. This page explains how HyperSync handles this important aspect of blockchain indexing. ## HyperSync Block Retrieval - **Efficient Processing**: We pull new blocks from HyperSync using a highly efficient process, ensuring your indexer stays up-to-date with minimal delay. - **Reliable Operation**: This process typically runs smoothly without significant issues. - **Redundancy Plans**: We're developing a system to sync new blocks from both RPC and HyperSync simultaneously, improving robustness if one source experiences issues. ## Chain-Specific Performance ### Optimized Major Chains - **Priority Chains**: We've dedicated significant resources to maintaining extremely low latency on popular chains including Ethereum, Optimism, and Arbitrum. - **User Experience**: Users should experience seamless, near real-time data updates on these chains. ### Smaller Chains - **Standard Performance**: On smaller chains, latency might be slightly higher as they have received less optimization. - **Improvement Process**: Your feedback helps us prioritize which chains to optimize next. Please let us know in Discord if low latency on specific smaller chains is important for your use case. ## Special Configuration Options ### Multi-Chain Indexing - **Unordered Event Ordering**: For applications indexing multiple chains, HyperIndex always processes events in [unordered mode](https://docs.envio.dev/docs/HyperIndex/multichain-indexing#multichain-event-ordering), so each chain keeps syncing independently - there is nothing to configure. - **Resilient Design**: With this configuration, even if one chain experiences latency, your other chains will continue syncing normally. ### Chain Reorganization Support - **Reorg Handling**: Our reorg support system ensures data consistency even when chains reorganize. - **Documentation**: Contact our team on Discord if you have concerns about reorg support while we finalize documentation. ## Envio Cloud Performance Envio Cloud offers reliable performance with ongoing improvements: - **Continuous Enhancement**: We're actively improving sync and build times on Envio Cloud. - **Relative Performance**: Currently, indexers may run slightly slower on Envio Cloud compared to high-performance local machines. - **Enterprise Solutions**: For applications requiring exceptional performance, contact us on Discord to discuss our enterprise hosting plans. By leveraging these features and providing feedback on your specific needs, you can help us continually improve the HyperIndex head latency performance. --- # Historical Sync > How HyperIndex historical sync behaves on HyperSync and RPC data sources, and how V3 preloading batches entity reads and runs external calls in parallel. Historical sync is an important aspect of maintaining and populating your database. Here's an overview of how historical sync works with HyperIndex: ## Optimized HyperSync Backend Nodes - **Fast Retrieval**: Historical sync is fast when retrieving data from our optimized HyperSync backend nodes. These nodes are specifically designed to handle large amounts of historical data efficiently. ## RPC Endpoint Limitations - **Slow Performance**: Unfortunately, historical sync for chains using RPC endpoints is not fast. The process is slower due to the limitations of RPC endpoints. - **No Local Caching**: We do not have any form of local caching at the moment. This feature was disabled in a previous release due to stability concerns. ## Preload Optimization - **Always on in V3**: Preload Optimization is enabled automatically in HyperIndex V3, with no flag to turn it on or off. It speeds up historical sync by batching the entity reads in your handlers into a small number of database queries, and by running external calls in parallel through the Effect API. - **Biggest gains**: The benefit is largest when your handlers read and update the same entities frequently, or when they make external calls. For details on how it works and how to write handlers that take advantage of it, see [Preload Optimization](https://docs.envio.dev/docs/HyperIndex/preload-optimization). By understanding these factors, you can better optimize the performance of your historical sync processes. --- # Benchmarking Your Indexer > Measure indexer throughput in events per second from Prometheus metrics, find which of five bottlenecks it is waiting on, apply the fix and verify the result. Every HyperIndex indexer reports what it's doing over an HTTP metrics endpoint while it runs. There's no benchmarking mode to enable and no profiler to attach - if the indexer is running, the numbers are already there. This page turns those numbers into an answer to one question: **what is my indexer waiting on, and what do I do about it?** Work through it in order: 1. [Measure throughput](#step-1-measure-throughput) - how fast is it, in events per second? 2. [Find the bottleneck](#step-2-find-the-bottleneck) - which of five things is it waiting on? 3. [Fix it](#step-3-fix-the-bottleneck) - the section for your bottleneck says what to change. 4. [Prove the fix worked](#step-4-prove-the-fix-worked) - re-measure and compare. ## Step 1: Measure throughput **Start the indexer** in one terminal - locally with [`envio dev`](https://docs.envio.dev/docs/HyperIndex/running-locally), or in production with `envio start`: ```bash pnpm envio dev ``` **Read its metrics** from a second terminal, in the same project: ```bash pnpm envio metrics # indexing metrics pnpm envio metrics runtime # Node.js process metrics (CPU, memory, GC, event-loop lag) ``` The output is plain Prometheus text - a `# HELP` line describing each metric, a `# TYPE` line, then one sample per line with its labels in braces: ```text # HELP envio_progress_events The number of events processed and reflected in the database. # TYPE envio_progress_events gauge envio_progress_events{chainId="1"} 158205 # HELP envio_process_elapsed_seconds How long the indexer has been running. # TYPE envio_process_elapsed_seconds gauge envio_process_elapsed_seconds 45.801 ``` Because every metric documents itself, grepping for the metric you care about - `pnpm envio metrics | grep envio_progress` - is usually the fastest way to answer a specific question. **Take two snapshots** a minute or so apart, and divide the change in events by the change in elapsed time: ```bash pnpm envio metrics > t1.txt # wait ~60s pnpm envio metrics > t2.txt grep -E '^envio_(progress_events|process_elapsed_seconds)' t1.txt t2.txt # t1: 158205 events at 45.8s # t2: 262000 events at 105.8s # (262000 - 158205) / (105.8 - 45.8) = ~1730 events/second ``` `envio_progress_events` is reported per `chainId`, so a multichain indexer prints one sample per chain: compare the same `chainId` across both snapshots for a per-chain figure, or sum every chain within each snapshot for the indexer as a whole. Both snapshots also have to come from one uninterrupted run - restarting the indexer resets `envio_process_elapsed_seconds`, so start a fresh baseline after any restart. (Prometheus `rate()` handles that for you when you scrape instead.) Interpret the result against what your workload plausibly allows: | Events per second | Reading | | --- | --- | | Over 10,000 | Excellent - most likely bounded by the data source, not by you | | 1,000–5,000 | Good. Worth tuning only if your sync time is still too long | | Under 500 | Something is probably wrong. Continue to step 2 | :::tip Measure over historical sync, not at the head Once a chain is caught up (`envio_progress_ready` is `1`), throughput reflects how fast new blocks arrive, not how fast your indexer is. Benchmark while the chain is still syncing history, or against a fixed block range with an `end_block` in [`config.yaml`](https://docs.envio.dev/docs/HyperIndex/configuration-file), so two runs are comparable. ::: ## Step 2: Find the bottleneck A slow indexer is waiting on something. Two counters attribute that wait directly - read them first, because they point at the answer instead of hinting at it: ```bash pnpm envio metrics | grep -E 'stalled_on|process_elapsed' ``` | Metric | Meaning | Go to | | --- | --- | --- | | `envio_processing_stalled_on_fetch_seconds` | Nothing to process - events hadn't been fetched yet | [Fetching](#fetching) | | `envio_processing_stalled_on_storage_write_seconds` | Processing paused - too many changes queued for writing | [Storage writes](#storage-writes) | Both are cumulative seconds, so read them as a share of the run: ```promql envio_processing_stalled_on_fetch_seconds / envio_process_elapsed_seconds ``` Anything above roughly `0.3` (30% of the run) is worth acting on. The same division works for every `_seconds` counter - that's how you compare parts of the pipeline against each other: | Metric | Share of the run spent… | | --- | --- | | `envio_processing_seconds` | inside your [event handlers](#handlers) | | `envio_preload_seconds` | [loading entities](#entity-loading) for a batch | | `envio_storage_write_seconds` | [writing batches](#storage-writes) to storage | | `envio_fetching_block_range_seconds` | [fetching](#fetching) block ranges (per `chainId`) | | `envio_effect_call_seconds_total` | inside [Effect API](#external-calls) calls (per `effect`) | :::note Counters, counts, and gauges Only `_seconds` counters are durations you can divide by elapsed time. Counts (`envio_progress_events`, `envio_processing_handler_total`) and gauges (`envio_progress_block`, `envio_indexing_concurrency`) are read as values or as deltas between snapshots. `envio_process_metric_time_seconds` records when a snapshot was taken, so you can compute rates between two of them by hand. ::: If you scrape with Prometheus instead of reading snapshots, every counter above works as a rate - `rate(envio_processing_stalled_on_fetch_seconds[5m])` - see [Scraping with Prometheus](https://docs.envio.dev/docs/HyperIndex/observability#scraping-with-prometheus). ## Step 3: Fix the bottleneck Each section below covers one bottleneck: how you recognise it, what it means, and what to change. Work only the one that step 2 pointed you at. ### Fetching **How you know** ```bash pnpm envio metrics | grep -E 'stalled_on_fetch|indexing_idle|fetching_block_range_seconds' ``` `envio_processing_stalled_on_fetch_seconds` is a large share of the run, and `envio_fetching_block_range_seconds` dominates the other `_seconds` counters. `envio_indexing_idle_seconds` climbing on a specific `chainId` tells you which chain is holding you up. **What it means** Your handlers are idle waiting for data. Time spent waiting at the chain head for new blocks is deliberately excluded from the stall counter, so a fully synced indexer never looks stalled here. **What to do** - Use [HyperSync](https://docs.envio.dev/docs/HyperIndex/hypersync) if it supports your chain - it's the single biggest change available, and RPC is orders of magnitude slower. - On [RPC](https://docs.envio.dev/docs/HyperIndex/rpc-sync), a faster provider or a higher rate limit is the fix; check `envio_source_request_seconds_total` per `source` to see what each one costs you. - Compare `envio_indexing_concurrency` with `envio_indexing_partitions` for the chain - if concurrency sits at its ceiling while events still arrive slowly, the source is saturated, not the indexer. - Watch `envio_fetching_block_range_parse_seconds`: when parsing rivals fetching, you're decoding far more events than your handlers use, so narrow the events in [`config.yaml`](https://docs.envio.dev/docs/HyperIndex/configuration-file). ### Entity loading **How you know** ```bash pnpm envio metrics | grep -E 'preload_seconds|storage_load' ``` `envio_preload_seconds` or `envio_storage_load_seconds_total` is a large share of the run. `envio_storage_load_size` and `envio_storage_load_where_size` (labeled by `operation` and `storage`) show which loads pull the most data. **What it means** [Preload optimization](https://docs.envio.dev/docs/HyperIndex/preload-optimization) batches the entity reads of a whole event batch into a few queries - but only for reads it can see during the preload phase. A read hidden behind a condition that only some events reach, or one that depends on the result of an earlier read, falls back to a single-event round trip. **What to do** - Read entities unconditionally near the top of the handler so the preload phase can batch them, rather than inside a branch. - Avoid chaining reads (`get` → use the id you just read → `get` again); load both entities up front where possible. - Add [database indices](https://docs.envio.dev/docs/HyperIndex/database-performance-optimization) for the fields you filter on with `getWhere`. - Reduce how much each load returns: a `getWhere` that matches thousands of rows costs more than the handler usually needs. ### Handlers **How you know** ```bash pnpm envio metrics | grep -E 'processing_handler_(seconds|total)' ``` `envio_processing_seconds` is a large share of the run. To find the specific handler, divide cumulative time by call count - both are labeled by `contract` and `event`: ```promql envio_processing_handler_seconds / envio_processing_handler_total ``` **What it means** Your own code is the cost. A mean above ~1ms per call is worth a look; compare handlers against each other rather than against an absolute number. **What to do** - Move external calls (RPC, HTTP, IPFS) out of the handler and into the [Effect API](https://docs.envio.dev/docs/HyperIndex/effect-api), which batches, parallelizes, and caches them. - Keep heavy derived computation out of the hot path - store what you need and compute the rest at query time. - Look for accidental work per event: parsing the same static data repeatedly, formatting, or building large intermediate objects. ### Storage writes **How you know** ```bash pnpm envio metrics | grep -E 'stalled_on_storage_write|storage_write' ``` `envio_processing_stalled_on_storage_write_seconds` is a large share of the run, and `envio_storage_write_seconds` is high next to `envio_storage_write_total` (labeled by `storage`). **What it means** The indexer produced entity changes faster than storage accepted them, so processing paused until the write queue drained. **What to do** - Write fewer entities per event. Updating a running-total entity on every event makes each event a write; aggregating in memory and writing on a coarser boundary avoids most of them. - Don't update the same entity several times within one handler - the last write wins anyway. - Check your database: [indices](https://docs.envio.dev/docs/HyperIndex/database-performance-optimization) speed up reads but every extra index slows writes down, and an under-resourced Postgres shows up here first. - If [reorg support](https://docs.envio.dev/docs/HyperIndex/reorgs-support) is enabled, entity history is written alongside your entities - `envio_rollback_history_prune_seconds` per `entity` shows what that costs. ### External calls **How you know** ```bash pnpm envio metrics | grep -E 'envio_effect_' ``` `envio_effect_call_seconds_total` is a large share of the run, or `envio_effect_queue_wait_seconds` shows calls waiting on a rate limit. Both are labeled per `effect`, so the slow one names itself. **What it means** Handlers are blocked on [Effect API](https://docs.envio.dev/docs/HyperIndex/effect-api) calls to something outside the indexer - an RPC node, an HTTP API, IPFS. **What to do** - Set `cache: true` on effects whose result is stable for a given input, so a rerun doesn't repeat the call; `envio_effect_cache` tracks cache size and `envio_effect_cache_invalidations` how often it's discarded. - Raise the effect's `rateLimit` if the provider allows it - `envio_effect_queue` sitting above zero means calls are queuing rather than running. - If effects are slow and can't be batched, lower [`full_batch_size`](https://docs.envio.dev/docs/HyperIndex/config-schema-reference#fullbatchsize) so a batch doesn't wait on thousands of pending calls. - Compare `envio_effect_call_seconds_total` with `envio_effect_call_total` to separate "each call is slow" from "there are too many calls". ## Step 4: Prove the fix worked Benchmarking is only useful as a loop: 1. **Capture a baseline** before changing anything: `pnpm envio metrics > before.txt`. 2. **Change one thing.** Two changes at once make it impossible to attribute the difference. 3. **Re-run over the same block range**, ideally from a fresh database so the run does the same work. 4. **Compare** the same numbers: events per second from step 1, and the share of the run for the counter you targeted. ```bash pnpm envio metrics > after.txt diff <(grep -E '^envio_(progress_events|.*_seconds)' before.txt) \ <(grep -E '^envio_(progress_events|.*_seconds)' after.txt) ``` Two things to watch while you iterate: - **Memory.** `pnpm envio metrics runtime` reports heap usage, GC, and event-loop lag. An indexer that speeds up while memory climbs is often deferring work rather than avoiding it. - **Realistic conditions.** Benchmark against a block range with the event mix your indexer actually sees - a quiet range flatters every change you make. ## Next Steps - [Observability](https://docs.envio.dev/docs/HyperIndex/observability) - the full metric reference, logs, health checks, and `_meta` indexing status - [Preload Optimization](https://docs.envio.dev/docs/HyperIndex/preload-optimization) - how batched entity reads work - [Effect API](https://docs.envio.dev/docs/HyperIndex/effect-api) - batching, parallelizing, and caching external calls - [Database Performance](https://docs.envio.dev/docs/HyperIndex/database-performance-optimization) - indices and schema design - [Latency at the Head](https://docs.envio.dev/docs/HyperIndex/latency-at-head) - what to expect once the indexer is caught up - Still stuck? Share your metrics snapshot in [Discord](https://discord.gg/envio) - we're happy to read it with you. --- # HyperIndex Performance Benchmarks > See why HyperIndex is the fastest blockchain indexer, with benchmark data against The Graph, Ponder, Rindexer, Squid SDK and Substreams. Across benchmark scenarios, HyperIndex runs 6–879x faster than other indexers, The Graph included. It is the fastest blockchain indexer in four of the five scenarios in our [open benchmark](https://github.com/enviodev/open-indexer-benchmark), jointly in one of them, and second in the fifth. On state aggregation it processed 261x the events per second of a subgraph on Graph Node. Figures are events per second from the run of 16 September 2026. The benchmark runs in GitHub CI and checks each tool's output against ground truth. The [repository README](https://github.com/enviodev/open-indexer-benchmark) always has the latest run, and the [methodology](https://github.com/enviodev/open-indexer-benchmark/blob/main/METHODOLOGY.md) explains how it works. ## State aggregation Every rETH transfer changes a balance, so each event means finding a row, updating it and saving it again. | Tool | Data source | Events/s | vs fastest | | --- | --- | --- | --- | | Envio Indexer | HyperSync | 8,182.4 | Fastest | | Envio Subgraph | HyperSync | 7,649.6 | 1.1x slower | | Rindexer | HyperSync | 947.2 | 8.6x slower | | Squid SDK | SQD Network | 556.1 | 14.7x slower | | Envio Indexer | RPC | 341.9 | 23.9x slower | | Rindexer | RPC | 322.8 | 25.3x slower | | Envio Subgraph | RPC | 241.1 | 33.9x slower | | Ponder | RPC | 62.0 | 132x slower | | Subgraph (Graph Node) | RPC | 31.4 | 261x slower | | Substreams | StreamingFast | 28.7 | 285.1x slower | | SubQuery | RPC | 25.3 | 323.9x slower | | Squid SDK | RPC | 17.3 | 474.1x slower | SubQuery and Squid SDK on RPC did not finish verifying the full range inside the 300 second cap. ## Solana USDC transfers Every USDC transfer on Solana, including the ones inside swaps and routers. | Tool | Data source | Events/s | vs fastest | | --- | --- | --- | --- | | Envio Indexer | HyperSync | 16,204.7 | Fastest | | Substreams | StreamingFast | 3,856.5 | 4.2x slower | | Squid SDK | SQD Network | 996.8 | 16.3x slower | | Carbon | RPC | 563.2 | 28.8x slower | ## Other scenarios | Scenario | Fastest | HyperIndex | Next tool | | --- | --- | --- | --- | | Decoded event stream | Rindexer on HyperSync, 78,416 | 1.2x slower | Squid SDK on SQD Network, 6.7x slower | | External contract calls | HyperIndex and Squid SDK, jointly | Joint fastest | Rindexer on HyperSync, 1.7x slower | | Factory contract registration | HyperIndex, 10,782 | Fastest | Rindexer on HyperSync, 1.5x slower | Rindexer's lead on the decoded event stream comes from reading HyperSync, Envio's own data layer. With RPC as its source, Rindexer is 7.2x slower, at 10,950 events/s. Read more about [HyperSync](https://docs.envio.dev/docs/HyperSync/overview). For a wider comparison, see [Best Blockchain Indexers in 2026](https://docs.envio.dev/blog/best-blockchain-indexers-2026). ## Sentio benchmark cases, April 2025 These cases come from Sentio's April 2025 research and are kept for [reference](https://github.com/enviodev/open-indexer-benchmark/blob/main/sentio-benchmarks-may-2025/README.md). They measure total sync time, predate the current method and are not comparable with the tables above. The Envio column names the product behind each figure, because HyperSync is a raw data engine rather than a full indexer. Sentio has since published [its own benchmark](https://www.sentio.xyz/blog/obib-open-blockchain-indexer-benchmark) with different results. | Case | Description | Envio | Nearest competitor | The Graph | Ponder | | --- | --- | --- | --- | --- | --- | | LBTC Token Transfer Events | Event handling, no RPC calls, write-only | 3m (HyperIndex) | 8m - 2.6x slower (Sentio) | 3h9m - 63x slower | 1h40m - 33x slower | | LBTC Token with RPC calls | Event handling, RPC calls, read-after-write, point calculation | 1m (HyperIndex) | 6m - 6x slower (Sentio) | 1h3m - 63x slower | 45m - 45x slower | | Ethereum Block Processing | 100K blocks with metadata extraction | 7.9s (HyperSync) | 1m - 7.5x slower (Subsquid) | 10m - 75x slower | 33m - 250x slower | | Ethereum Transaction Gas Usage | Transaction handling, gas calculations | 1m26s (HyperSync) | 7m - 4.8x slower (Subsquid) | N/A | 33m - 23x slower | | Uniswap V2 Swap Trace Analysis | Transaction trace handling, swap decoding | 41s (HyperSync) | 2m - 2.9x slower (Subsquid) | 8m - 11x slower | N/A | | Uniswap V2 Template | Event handling, pair and swap analysis | 8s (HyperIndex) | 2m - 15x slower (Subsquid) | 19m - 142x slower | 21m - 157x slower | Some runs in these cases did not return complete data. The [reference README](https://github.com/enviodev/open-indexer-benchmark/blob/main/sentio-benchmarks-may-2025/README.md) has the counts. ## Historical benchmarking results In October 2023 our internal benchmark indexed the Uniswap V3 ETH-USDC pool 2.1x faster than the nearest competitor. See the [Indexer Benchmarking Results blog post](https://docs.envio.dev/blog/indexer-benchmarking-results). ## Verify for yourself Every Open Indexer Benchmark figure comes from code you can run. Each scenario in the [repository](https://github.com/enviodev/open-indexer-benchmark) has its own setup instructions, and contributions are welcome, including new indexers, new scenarios and reports of results that look wrong. --- # Chains supported by HyperIndex, with chain IDs > Every chain HyperIndex indexes natively, with chain IDs and HyperSync and HyperRPC URLs, plus RPC as a data source for other EVM chains and indexing on Fuel. HyperIndex natively supports indexing any EVM blockchain out of the box. As a developer you can start indexing and querying your smart contract data across any EVM-compatible L1, L2, or L3 blockchain using HyperIndex. HyperIndex also supports data indexing on [Fuel](https://docs.envio.dev/docs/HyperIndex/fuel.md). :::info The backbone of HyperIndex’s blazing-fast indexing speed lies in using HyperSync as a more performant and cost-effective data source to RPC for data retrieval. While RPCs are functional, and can be used in HyperIndex as a data source, they are far from efficient when it comes to querying large amounts of data (a time-consuming and resource-intensive endeavour). HyperSync is significantly faster and more cost-effective than traditional RPC methods, allowing the retrieval of multiple blocks at once, and enabling sync speeds up to 2000x faster than RPC. ::: If a [chain is supported](https://docs.envio.dev/docs/HyperSync/hypersync-supported-networks) on HyperSync, then HyperSync is used by default as the data source. This means developers don't additionally need to worry about RPCs, rate-limiting, etc. This is especially valuable for multi-chain apps. If the chain that you want to index is not supported on HyperSync, please navigate to [RPC Data Source](https://docs.envio.dev/docs/HyperIndex/rpc-sync.md) for more information to use RPC as a data source. You can also request a chain to be added to HyperSync in the [Discord](https://discord.gg/envio). ### Chains available on request Some chains are supported on a request basis: HyperSync support exists, but access is enabled per project rather than being publicly available. These are marked _"Access on request"_ in the table below - reach out to us on [Discord](https://discord.gg/envio) to request access. ## All supported chains Every chain Envio supports, with its chain ID and endpoints. Chains marked _RPC only_ have no HyperSync endpoint yet and are indexed via [RPC as a data source](https://docs.envio.dev/docs/HyperIndex/rpc-sync.md). For a per-chain overview with block explorers and native currency details, see [envio.dev/chains](https://envio.dev/chains). | Chain | Chain ID | HyperSync URL | HyperRPC URL | | --- | --- | --- | --- | | 0G Newton Testnet | 16600 | _RPC only_ | _RPC only_ | | Ab | 36888 | https://36888.hypersync.xyz | https://36888.rpc.hypersync.xyz | | Abstract | 2741 | https://2741.hypersync.xyz | https://2741.rpc.hypersync.xyz | | Aleph Zero EVM | 41455 | _RPC only_ | _RPC only_ | | Altlayer OP Demo Testnet | 9997 | _RPC only_ | _RPC only_ | | Ancient8 | 888888888 | _RPC only_ | _RPC only_ | | Arbitrum | 42161 | https://42161.hypersync.xyz | https://42161.rpc.hypersync.xyz | | Arbitrum Blueberry | 88153591557 | _RPC only_ | _RPC only_ | | Arbitrum Nova | 42170 | https://42170.hypersync.xyz | https://42170.rpc.hypersync.xyz | | Arbitrum Sepolia | 421614 | https://421614.hypersync.xyz | https://421614.rpc.hypersync.xyz | | Arc | 5042 | https://5042.hypersync.xyz | https://5042.rpc.hypersync.xyz | | Arc Testnet | 5042002 | https://5042002.hypersync.xyz | https://5042002.rpc.hypersync.xyz | | Artela Testnet | 11822 | _RPC only_ | _RPC only_ | | Arthera Mainnet | 10242 | _RPC only_ | _RPC only_ | | Asset Chain Mainnet | 42420 | _RPC only_ | _RPC only_ | | Astar ZkEVM | 3776 | _RPC only_ | _RPC only_ | | Astar ZKyoto | 6038361 | _RPC only_ | _RPC only_ | | Aurora | 1313161554 | https://1313161554.hypersync.xyz | https://1313161554.rpc.hypersync.xyz | | Avalanche | 43114 | https://43114.hypersync.xyz | https://43114.rpc.hypersync.xyz | | B2 Hub Testnet | 1113 | _RPC only_ | _RPC only_ | | B3 | 8333 | _RPC only_ | _RPC only_ | | B3 Sepolia Testnet | 1993 | _RPC only_ | _RPC only_ | | Base | 8453 | https://8453.hypersync.xyz | https://8453.rpc.hypersync.xyz | | Base Sepolia | 84532 | https://84532.hypersync.xyz | https://84532.rpc.hypersync.xyz | | Base Traces* | 8453 | Access on request - [contact us](https://discord.gg/envio) | Access on request - [contact us](https://discord.gg/envio) | | Beam | 4337 | _RPC only_ | _RPC only_ | | Berachain | 80094 | https://80094.hypersync.xyz | https://80094.rpc.hypersync.xyz | | Berachain Artio Testnet | 80085 | _RPC only_ | _RPC only_ | | BEVM Mainnet | 11501 | _RPC only_ | _RPC only_ | | BEVM Testnet | 11503 | _RPC only_ | _RPC only_ | | Bitfinity Mainnet | 355110 | _RPC only_ | _RPC only_ | | Bitfinity Testnet | 355113 | _RPC only_ | _RPC only_ | | Bitgert Mainnet | 32520 | _RPC only_ | _RPC only_ | | Bitlayer | 200901 | _RPC only_ | _RPC only_ | | Blast | 81457 | https://81457.hypersync.xyz | https://81457.rpc.hypersync.xyz | | BOB Mainnet | 60808 | _RPC only_ | _RPC only_ | | Boba | 288 | https://288.hypersync.xyz | https://288.rpc.hypersync.xyz | | Boba BNB Mainnet | 56288 | _RPC only_ | _RPC only_ | | Botanix Testnet | 3636 | _RPC only_ | _RPC only_ | | Bsc | 56 | https://56.hypersync.xyz | https://56.rpc.hypersync.xyz | | Bsc Testnet | 97 | https://97.hypersync.xyz | https://97.rpc.hypersync.xyz | | Canto | 7700 | _RPC only_ | _RPC only_ | | Canto Testnet | 7701 | _RPC only_ | _RPC only_ | | Celo | 42220 | https://42220.hypersync.xyz | https://42220.rpc.hypersync.xyz | | Celo Alfajores Testnet | 44787 | _RPC only_ | _RPC only_ | | Chiliz | 88888 | https://88888.hypersync.xyz | https://88888.rpc.hypersync.xyz | | Chiliz Testnet Spicy | 88882 | _RPC only_ | _RPC only_ | | Citrea | 4114 | https://4114.hypersync.xyz | https://4114.rpc.hypersync.xyz | | Citrea Devnet | 62298 | _RPC only_ | _RPC only_ | | Citrea Testnet | 5115 | https://5115.hypersync.xyz | https://5115.rpc.hypersync.xyz | | Core | 1116 | _RPC only_ | _RPC only_ | | Creator Testnet | 66665 | _RPC only_ | _RPC only_ | | Cronos ZKEVM | 388 | _RPC only_ | _RPC only_ | | Cronos ZKEVM Testnet | 240 | _RPC only_ | _RPC only_ | | CrossFi Mainnet | 4158 | _RPC only_ | _RPC only_ | | CrossFi Testnet | 4157 | _RPC only_ | _RPC only_ | | Curtis | 33111 | https://33111.hypersync.xyz | https://33111.rpc.hypersync.xyz | | Cyber | 7560 | https://7560.hypersync.xyz | https://7560.rpc.hypersync.xyz | | Degen Chain | 666666666 | _RPC only_ | _RPC only_ | | DFK Chain | 53935 | _RPC only_ | _RPC only_ | | Dogechain Mainnet | 2000 | _RPC only_ | _RPC only_ | | Dogechain Testnet | 568 | _RPC only_ | _RPC only_ | | DOS Chain | 7979 | _RPC only_ | _RPC only_ | | Energy Web | 246 | _RPC only_ | _RPC only_ | | EOS | 17777 | _RPC only_ | _RPC only_ | | Eth Traces* | 1 | Access on request - [contact us](https://discord.gg/envio) | Access on request - [contact us](https://discord.gg/envio) | | Ethereum Mainnet | 1 | https://1.hypersync.xyz | https://1.rpc.hypersync.xyz | | Etherlink | 42793 | https://42793.hypersync.xyz | https://42793.rpc.hypersync.xyz | | Etherlink Testnet | 128123 | _RPC only_ | _RPC only_ | | Exosama | 2109 | _RPC only_ | _RPC only_ | | Fantom | 250 | https://250.hypersync.xyz | https://250.rpc.hypersync.xyz | | Fantom Testnet | 4002 | _RPC only_ | _RPC only_ | | Flare | 14 | https://14.hypersync.xyz | https://14.rpc.hypersync.xyz | | Flare Songbird | 19 | _RPC only_ | _RPC only_ | | Flow | 747 | _RPC only_ | _RPC only_ | | Flow Testnet | 545 | _RPC only_ | _RPC only_ | | Fraxtal | 252 | https://252.hypersync.xyz | https://252.rpc.hypersync.xyz | | Fuji | 43113 | https://43113.hypersync.xyz | https://43113.rpc.hypersync.xyz | | Gnosis | 100 | https://100.hypersync.xyz | https://100.rpc.hypersync.xyz | | Gnosis Chiado | 10200 | https://10200.hypersync.xyz | https://10200.rpc.hypersync.xyz | | Gnosis Traces | 100 | Access on request - [contact us](https://discord.gg/envio) | Access on request - [contact us](https://discord.gg/envio) | | Gravity Alpha Mainnet | 1625 | _RPC only_ | _RPC only_ | | Harmony Shard 0 | 1666600000 | https://1666600000.hypersync.xyz | https://1666600000.rpc.hypersync.xyz | | Heco Chain | 128 | _RPC only_ | _RPC only_ | | Hoodi | 560048 | https://560048.hypersync.xyz | https://560048.rpc.hypersync.xyz | | Hyperliquid | 999 | https://999.hypersync.xyz | https://999.rpc.hypersync.xyz | | Immutable ZkEVM | 13371 | _RPC only_ | _RPC only_ | | Immutable ZkEVM Testnet | 13473 | _RPC only_ | _RPC only_ | | Injective* | 1776 | https://1776.hypersync.xyz | https://1776.rpc.hypersync.xyz | | Ink | 57073 | https://57073.hypersync.xyz | https://57073.rpc.hypersync.xyz | | Iotex Network | 4689 | _RPC only_ | _RPC only_ | | Japan Open Chain | 81 | _RPC only_ | _RPC only_ | | Kaia | 8217 | _RPC only_ | _RPC only_ | | Kakarot Starknet Sepolia | 920637907288165 | _RPC only_ | _RPC only_ | | Katana | 747474 | https://747474.hypersync.xyz | https://747474.rpc.hypersync.xyz | | LayerEdge Testnet | 3456 | _RPC only_ | _RPC only_ | | Lightlink Pegasus Testnet | 1891 | _RPC only_ | _RPC only_ | | Lightlink Phoenix | 1890 | _RPC only_ | _RPC only_ | | Linea | 59144 | https://59144.hypersync.xyz | https://59144.rpc.hypersync.xyz | | Lisk | 1135 | https://1135.hypersync.xyz | https://1135.rpc.hypersync.xyz | | Lukso | 42 | https://42.hypersync.xyz | https://42.rpc.hypersync.xyz | | Lukso Testnet | 4201 | https://4201.hypersync.xyz | https://4201.rpc.hypersync.xyz | | Manta | 169 | https://169.hypersync.xyz | https://169.rpc.hypersync.xyz | | Manta Pacific Sepolia | 3441006 | _RPC only_ | _RPC only_ | | Mantle | 5000 | https://5000.hypersync.xyz | https://5000.rpc.hypersync.xyz | | Megaeth | 4326 | https://4326.hypersync.xyz | https://4326.rpc.hypersync.xyz | | Megaeth Testnet2 | 6343 | https://6343.hypersync.xyz | https://6343.rpc.hypersync.xyz | | Merlin | 4200 | https://4200.hypersync.xyz | https://4200.rpc.hypersync.xyz | | Metall2 | 1750 | https://1750.hypersync.xyz | https://1750.rpc.hypersync.xyz | | Meter Mainnet | 82 | _RPC only_ | _RPC only_ | | Meter Testnet | 83 | _RPC only_ | _RPC only_ | | Mint Mainnet | 185 | _RPC only_ | _RPC only_ | | Mode | 34443 | https://34443.hypersync.xyz | https://34443.rpc.hypersync.xyz | | Monad | 143 | https://143.hypersync.xyz | https://143.rpc.hypersync.xyz | | Monad Testnet | 10143 | https://10143.hypersync.xyz | https://10143.rpc.hypersync.xyz | | Moonbeam *(indexing halted, historical data only)* | 1284 | https://1284.hypersync.xyz | https://1284.rpc.hypersync.xyz | | Morph | 2818 | https://2818.hypersync.xyz | https://2818.rpc.hypersync.xyz | | Nautilus | 22222 | _RPC only_ | _RPC only_ | | Neo X Testnet | 12227332 | _RPC only_ | _RPC only_ | | Nibiru Testnet | 7210 | _RPC only_ | _RPC only_ | | Now Chaint | 2488 | _RPC only_ | _RPC only_ | | Oasis Emerald | 42262 | _RPC only_ | _RPC only_ | | Oasis Sapphire | 23294 | _RPC only_ | _RPC only_ | | ONIGIRI Subnet | 5040 | _RPC only_ | _RPC only_ | | ONIGIRI Test Subnet | 5039 | _RPC only_ | _RPC only_ | | Ontology Mainnet | 58 | _RPC only_ | _RPC only_ | | Ontology Testnet | 5851 | _RPC only_ | _RPC only_ | | OP Celestia Raspberry | 123420111 | _RPC only_ | _RPC only_ | | Opbnb | 204 | https://204.hypersync.xyz | https://204.rpc.hypersync.xyz | | Optimism | 10 | https://10.hypersync.xyz | https://10.rpc.hypersync.xyz | | Optimism Sepolia | 11155420 | https://11155420.hypersync.xyz | https://11155420.rpc.hypersync.xyz | | Optopia | 62050 | _RPC only_ | _RPC only_ | | Peaq | 3338 | _RPC only_ | _RPC only_ | | Plasma | 9745 | https://9745.hypersync.xyz | https://9745.rpc.hypersync.xyz | | Plume | 98866 | https://98866.hypersync.xyz | https://98866.rpc.hypersync.xyz | | Polygon | 137 | https://137.hypersync.xyz | https://137.rpc.hypersync.xyz | | Polygon Amoy | 80002 | https://80002.hypersync.xyz | https://80002.rpc.hypersync.xyz | | Polygon zkEVM *(indexing halted, historical data only)* | 1101 | https://1101.hypersync.xyz | https://1101.rpc.hypersync.xyz | | Polygon ZkEVM Cardona Testnet | 2442 | _RPC only_ | _RPC only_ | | Public Goods Network | 424 | _RPC only_ | _RPC only_ | | PulseChain | 369 | _RPC only_ | _RPC only_ | | Puppynet Shibarium | 157 | _RPC only_ | _RPC only_ | | Robinhood | 4663 | https://4663.hypersync.xyz | https://4663.rpc.hypersync.xyz | | Ronin | 2020 | _RPC only_ | _RPC only_ | | Rootstock | 30 | https://30.hypersync.xyz | https://30.rpc.hypersync.xyz | | SatoshiVM | 3109 | _RPC only_ | _RPC only_ | | Scroll | 534352 | https://534352.hypersync.xyz | https://534352.rpc.hypersync.xyz | | Scroll Sepolia | 534351 | _RPC only_ | _RPC only_ | | Sei* | 1329 | https://1329.hypersync.xyz | https://1329.rpc.hypersync.xyz | | Sei Testnet* | 1328 | https://1328.hypersync.xyz | https://1328.rpc.hypersync.xyz | | Sepolia | 11155111 | https://11155111.hypersync.xyz | https://11155111.rpc.hypersync.xyz | | Shibarium | 109 | _RPC only_ | _RPC only_ | | Shimmer Evm | 148 | https://148.hypersync.xyz | https://148.rpc.hypersync.xyz | | Skale Europa | 2046399126 | _RPC only_ | _RPC only_ | | Somnia | 5031 | https://5031.hypersync.xyz | https://5031.rpc.hypersync.xyz | | Somnia Testnet | 50312 | https://50312.hypersync.xyz | https://50312.rpc.hypersync.xyz | | Soneium | 1868 | https://1868.hypersync.xyz | https://1868.rpc.hypersync.xyz | | Sonic | 146 | https://146.hypersync.xyz | https://146.rpc.hypersync.xyz | | Sonic Testnet | 14601 | https://14601.hypersync.xyz | https://14601.rpc.hypersync.xyz | | Sophon | 50104 | https://50104.hypersync.xyz | https://50104.rpc.hypersync.xyz | | Stable | 988 | Access on request - [contact us](https://discord.gg/envio) | Access on request - [contact us](https://discord.gg/envio) | | StratoVM Testnet | 93747 | _RPC only_ | _RPC only_ | | Superseed | 5330 | https://5330.hypersync.xyz | https://5330.rpc.hypersync.xyz | | Superseed Sepolia Testnet | 53302 | _RPC only_ | _RPC only_ | | Swell *(indexing halted, historical data only)* | 1923 | https://1923.hypersync.xyz | https://1923.rpc.hypersync.xyz | | Taiko | 167000 | _RPC only_ | _RPC only_ | | Tanssi Demo | 5678 | _RPC only_ | _RPC only_ | | Telos EVM Mainnet | 40 | _RPC only_ | _RPC only_ | | Telos EVM Testnet | 41 | _RPC only_ | _RPC only_ | | Tempo | 4217 | https://4217.hypersync.xyz | https://4217.rpc.hypersync.xyz | | Tempo Testnet | 42429 | _RPC only_ | _RPC only_ | | Torus Mainnet | 8192 | _RPC only_ | _RPC only_ | | Torus Testnet | 8194 | _RPC only_ | _RPC only_ | | Tron | 728126428 | https://728126428.hypersync.xyz | https://728126428.rpc.hypersync.xyz | | Unichain | 130 | https://130.hypersync.xyz | https://130.rpc.hypersync.xyz | | Unicorn Ultra Nebulas Testnet | 2484 | _RPC only_ | _RPC only_ | | Velas Mainnet | 106 | _RPC only_ | _RPC only_ | | Viction | 88 | _RPC only_ | _RPC only_ | | Worldchain | 480 | https://480.hypersync.xyz | https://480.rpc.hypersync.xyz | | X Layer Mainnet | 196 | _RPC only_ | _RPC only_ | | X Layer Testnet | 195 | _RPC only_ | _RPC only_ | | XDC | 50 | Access on request - [contact us](https://discord.gg/envio) | Access on request - [contact us](https://discord.gg/envio) | | XDC Apothem Testnet | 51 | _RPC only_ | _RPC only_ | | XDC Network | 50 | _RPC only_ | _RPC only_ | | XDC Testnet | 51 | Access on request - [contact us](https://discord.gg/envio) | Access on request - [contact us](https://discord.gg/envio) | | Zeta | 7000 | https://7000.hypersync.xyz | https://7000.rpc.hypersync.xyz | | Zeta Testnet | 7001 | _RPC only_ | _RPC only_ | | Zircuit | 48900 | Access on request - [contact us](https://discord.gg/envio) | Access on request - [contact us](https://discord.gg/envio) | | ZkLink Nova Mainnet | 810180 | _RPC only_ | _RPC only_ | | ZKsync | 324 | https://324.hypersync.xyz | https://324.rpc.hypersync.xyz | | ZkSync Sepolia Testnet | 300 | _RPC only_ | _RPC only_ | | Zora | 7777777 | https://7777777.hypersync.xyz | https://7777777.rpc.hypersync.xyz | | Zora Sepolia | 999999999 | _RPC only_ | _RPC only_ | **Notes:** - **Base Traces***: Traces are available as a paid add-on. Start block: 24000000 (earlier blocks available on request) - **Eth Traces***: Traces are available as a paid add-on - **Injective***: Start block: 129846180 (non-evm before that) - **Sei***: Start block: 79123881 (non-evm before that) - **Sei Testnet***: Start block: 186100000 (non-evm before that) --- --- # Any EVM with RPC 🐌 > Index any EVM-compatible chain with Envio HyperIndex by pointing at its RPC endpoint. Useful for chains without native HyperSync support. --- Any EVM-compatible chain can be indexed using an RPC as a source. This means that you can use any EVM-compatible chain as a data source for your indexer. This is particularly useful for chains that do not have a native HyperSync or HyperRPC solution. ### Defining Chain Configurations ```yaml name: IndexerName # Specify indexer name description: Indexer Description # Include indexer description chains: - id: 1234567890 rpc: https://custom-chain-rpc.com # RPC URL for that custom chain start_block: 0 # Specify the starting block contracts: - name: ContractName address: - "0xYourContractAddress1" # Replace with your contract addresses - "0xYourContractAddress2" events: - event: "Transfer(address indexed from, address indexed to, uint256 value)" # Event signature ``` ### Choosing an RPC Provider Envio's RPC partner [Dwellir](https://www.dwellir.com/networks?utm_source=envio.dev) provides endpoints for many EVM chains and is a good place to start if you need an RPC for a network without HyperSync support. See [RPC as Data Source](https://docs.envio.dev/docs/HyperIndex/rpc-sync) for more configuration options. ### Support Can’t find what you’re looking for or need support? Reach out to us on [Discord](https://discord.gg/envio); we’re always happy to help! :::info The backbone of HyperIndex’s blazing-fast indexing speed lies in using HyperSync as a more performant and cost-effective data source to RPC for data retrieval. While RPCs are functional, and can be used in HyperIndex as a data source, they are far from efficient when it comes to querying large amounts of data (a time-consuming and resource-intensive endeavour). HyperSync is significantly faster and more cost-effective than traditional RPC methods, allowing the retrieval of multiple blocks at once, and enabling sync speeds up to 2000x faster than RPC. ::: --- --- # Local chain - Anvil > Index a local Anvil chain (chain ID 31337) with Envio HyperIndex. Includes the config.yaml snippet for pointing at http://localhost:8545. --- A local chain can be used as a data source for your indexer. You simply need to specify it in `config.yaml`. ### Defining Chain Configurations ```yaml name: IndexerName # Specify indexer name description: Indexer Description # Include indexer description chains: - id: 31337 # Local Anvil default chain id rpc: http://localhost:8545 # RPC URL for your local Anvil chain start_block: 0 # Specify the starting block contracts: - name: ContractName address: - "0xYourContractAddress1" # Replace with your contract addresses - "0xYourContractAddress2" events: - event: "Transfer(address indexed from, address indexed to, uint256 value)" # Event signature ``` --- --- # Local chain - Hardhat > Index a local Hardhat chain (chain ID 31337) with Envio HyperIndex. Includes the config.yaml snippet for pointing at http://localhost:8545. --- A local chain can be used as a data source for your indexer. You simply need to specify it in `config.yaml`. ### Defining Chain Configurations ```yaml name: IndexerName # Specify indexer name description: Indexer Description # Include indexer description chains: - id: 31337 # Local Hardhat default chain id rpc: http://localhost:8545 # RPC URL for your local Hardhat chain start_block: 0 # Specify the starting block contracts: - name: ContractName address: - "0xYourContractAddress1" # Replace with your contract addresses - "0xYourContractAddress2" events: - event: "Transfer(address indexed from, address indexed to, uint256 value)" # Event signature ``` -- --- # HyperIndex licence and end-user licence agreement > HyperIndex is licensed under an end-user licence agreement, not an OSI licence. Read what it allows for self-hosting and what it restricts. ## TL;DR - Envio's licensing reflects open source ethos but is not OSI recognized. - Developers can use Envio's services without vendor lock-in, either by self-hosting or specifying an RPC URL. - The HyperIndex code is public. - Our license allows self-hosting but restricts third-party competition with Envio Cloud. - Envio may consider open-sourcing in the future but prioritizes stakeholder interests and market traction. ## Our position We're devs and we value OS ethos too, that's why our licensing mirrors a lot of the benefits from open source licensing however Envio and its products do not use a recognized open source license by the [OSI](https://opensource.org/), we are however public and open and our licensing reflects this. Our future business model lies in Envio Cloud and HyperSync requests and so we are protecting this, but to ensure continuity and no vendor lock-in, developers are able to run and develop on their indexer without either. Either by self-hosting, which our license permits, or by specifying an RPC URL in their indexer configuration and thus bypassing HyperSync. Envio is in its formative stages and though we may look to open-source the software in the future we are dedicated to ensuring the best interests of all stakeholders. Going open source is somewhat of a one-way function and it is easier to go open source than to proverbially go "closed source". Once we have gained more market traction we will review our position on going open source. ## HyperIndex End-User License Agreement (EULA) This agreement describes the users' rights and the conditions upon which the Software and Generated Code may be used. The user should review the entire agreement, including any supplemental license terms that accompany the Software since all of the terms are important and together create this agreement that applies to them. ### 1. Definitions **Software:** HyperIndex, a copyrightable work created by Envio and licensed under this End User License Agreement (“EULA”). **Generated Code:** In the context of this license agreement, the term "generated code" refers to computer programming code that is produced automatically by the Software based on input provided by the user. **Licensed Material:** The Software and Generated Code defined here will be collectively referred to as “Licensed Material”. ### 2. Installation and User Rights **License:** The Software is provided under this EULA. By agreeing to the EULA terms, you are granted the right to install and operate one instance of the Software on your device (referred to as the licensed device), for the use of one individual at a time, on the condition that you adhere to all terms outlined in this agreement. The licensor provides you with a non-exclusive, royalty-free, worldwide license that is non-sublicensable and non-transferable. This license allows you to use the Software subject to the limitations and conditions outlined in this EULA. With one license, the user can only use the Software on a single device. **Device:** In this agreement, "device" refers to a hardware system, whether physical or virtual, equipped with an internal storage device capable of executing the Software. This includes hardware partitions, which are considered individual devices for the purposes of this agreement. Updates may be provided to the Software, and these updates may alter the minimum hardware requirements necessary for the Software. It is the responsibility of users to comply with any changing hardware requirements. **Updates:** The Software may be updated automatically. With each update, the EULA may be amended, and it is the users' responsibility to comply with the amendments. **Limitations:** Envio reserves all rights, including those under intellectual property laws, not expressly granted in this agreement. For instance, this license does not confer upon you the right to, and you are prohibited from: (i) Publishing, copying (other than the permitted backup copy), renting, leasing, or lending the Software; (ii) Transferring the Software (except as permitted by this agreement); (iii) Circumventing any technical restrictions or limitations in the Software; (iv) Using the Software as server Software, for commercial hosting, making the Software available for simultaneous use by multiple users over a network, installing the Software on a server and allowing users to access it remotely, or installing the Software on a device solely for remote user use; (v) Reverse engineering, decompiling, or disassembling the Software, or attempting to do so, except and only to the extent that the foregoing restriction is (a) permitted by applicable law; (b) permitted by licensing terms governing the use of open-source components that may be included with the Software and (vi) When using the Software, you may not use any features in any manner that could interfere with anyone else's use of them, or attempt to gain unauthorized access to or use of any service, data, account, or network. These limitations apply specifically to the Software and do not extend to the Generated Code. Details regarding the use of the Generated Code, including associated limitations, are provided below. ### 3. Use of the Generated Code **Limitations:** Users can use, copy, distribute, make available, and create derivative works of the Generated Code freely, subject to the limitations and conditions specified below. (i) The user is prohibited from offering the Generated Code or any software that includes the Generated Code to third parties as a hosted or managed service, where the service grants users access to a significant portion of the Software's features or functionality. (ii) The user is not permitted to tamper with, alter, disable, or bypass the functionality of the license key in the Software. Additionally, the user may not eliminate or conceal any functionality within the Software that is safeguarded by the license key. (iii) Any modification, removal, or concealment of licensing, copyright, or other notices belonging to the licensor in the Software is strictly forbidden. The use of the licensor's trademarks is subject to relevant laws. **Credit:** If the user utilizes the Generated Code to develop and release new software, product, or service, the license agreement for said software, product, or service must include proper credit to HyperIndex. **Liability:** Envio does not provide any assurance that the Generated Code functions correctly, nor does it assume any responsibility in this regard. Additionally, it will be the responsibility of the user to assess whether the Generated Code is suitable for the products and services provided by the user. Envio will not bear any responsibility if the Generated Code is found unsuitable for the products and services provided by the user. ### 4. Additional Terms **Disclaimer of Warranties and Limitation of Liability:** (i) Unless expressly undertaken by the Licensor separately, the Licensed Material is provided on an as-is, as-available basis, and the Licensor makes no representations or warranties of any kind regarding the Licensed Material, whether express, implied, statutory, or otherwise. This encompasses, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether known or discoverable. If disclaimers of warranties are not permitted in whole or in part, this disclaimer may not apply to You. (ii) To the fullest extent permitted by law, under no circumstances shall the Licensor be liable to You under any legal theory (including, but not limited to, negligence) for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising from the use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. If limitations of liability are not permitted in whole or in part, this limitation may not apply to You. (iii) The disclaimers of warranties and limitations of liability outlined above shall be construed in a manner that most closely approximates an absolute disclaimer and waiver of all liability, to the fullest extent permitted by law. **Applicable Law and Competent Courts:** This EULA shall be governed by and construed in accordance with the laws of England. The courts of England shall have exclusive jurisdiction to settle any dispute arising out of or in connection with this EULA. **Additional Agreements:** If the user chooses to use the Software, it may be required to agree to additional terms or agreements outside of this EULA. ---