# Envio docs: HyperRPC
> Read-only JSON-RPC endpoint powered by HyperSync: supported methods, usage and supported networks.
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](https://docs.envio.dev/llms-hyperindex-reference.txt): 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 (this file): HyperRPC, about 6k tokens. Read-only JSON-RPC endpoint powered by HyperSync: supported methods, usage and supported networks.
Pages in this file:
- HyperRPC: Ultra-Fast Read-Only RPC
- HyperRPC endpoints and chain IDs by network
- MIP-16 query methods
---
# HyperRPC: Ultra-Fast Read-Only RPC
> Explore HyperRPC, fast read-only RPC for data-heavy blockchain queries and analytics.
HyperRPC is an extremely fast read-only RPC designed specifically for data-intensive blockchain tasks. Built from the ground up to optimize performance, it offers a simple drop-in solution with dramatic speed improvements over traditional nodes.
:::info HyperSync vs. HyperRPC
**For most use cases, we recommend using [HyperSync](https://docs.envio.dev/docs/HyperSync/overview) over HyperRPC.**
HyperSync provides significantly faster performance and much greater flexibility in how you query and filter blockchain data. Behind the scenes, HyperRPC actually uses HyperSync to fulfill requests. If you want a full indexing framework with schema management, event handlers, and a hosted GraphQL API on top of HyperSync, see [HyperIndex](https://docs.envio.dev/docs/HyperIndex/overview).
**When to use HyperRPC:**
- When you need a simple drop-in replacement for existing RPC-based code
- When you don't have time for a deeper integration
- When you're working with tools that expect standard JSON-RPC interfaces
**When to use HyperSync:**
- When performance is critical (HyperSync is much faster)
- When you need advanced filtering capabilities
- When you want more control over data formatting and field selection
- For new projects where you're designing the data access layer
:::
## Table of Contents
- [What is HyperRPC?](#what-is-hyperrpc)
- [Performance Advantages](#performance-advantages)
- [Supported Methods](#supported-methods)
- [Supported Networks](#supported-networks)
- [Getting Started](#getting-started)
- [Billing](#billing)
- [Development Status](#development-status)
## What is HyperRPC?
HyperRPC is a specialized JSON-RPC endpoint that focuses exclusively on **read operations** to deliver exceptional performance. By optimizing specifically for data retrieval workflows, HyperRPC can significantly outperform traditional nodes for data-intensive applications.
Key characteristics:
- **Read-only**: Optimized for data retrieval (cannot send transactions)
- **Drop-in compatible**: Works with existing tooling that uses standard RPC methods
- **Specialized**: Designed specifically for data-intensive operations like `eth_getLogs`
- **Cryptographically verified**: As each block is ingested, its transactions and receipts are used to recompute the `transactionsRoot` and `receiptsRoot` in the block header, and data that doesn't match is refetched from another source. See [Nodes silently miss events](https://docs.envio.dev/blog/nodes-silently-miss-events).
## Performance Advantages
Early benchmarks show that HyperRPC can deliver up to **5x performance improvement** for data-intensive operations compared to traditional nodes like `geth`, `erigon`, and `reth`.
This performance boost is particularly noticeable for:
- Historical data queries
- Log event filtering
- Block and transaction retrievals
- Analytics applications
## Supported Methods
HyperRPC currently supports the following Ethereum JSON-RPC methods:
| Category | Methods |
| --- | --- |
| **Chain Data** | `eth_chainId`
`eth_blockNumber`
`eth_gasPrice`
`net_version`
`web3_clientVersion` |
| **Block Data** | `eth_getBlockByNumber`
`eth_getBlockByHash`
`eth_getBlockReceipts` |
| **Transaction Data** | `eth_getTransactionByHash`
`eth_getTransactionByBlockHashAndIndex`
`eth_getTransactionByBlockNumberAndIndex`
`eth_getTransactionReceipt` |
| **Event Logs** | `eth_getLogs` |
| **Log Filters** | `eth_newFilter`
`eth_getFilterLogs`
`eth_getFilterChanges`
`eth_uninstallFilter` |
| **Traces** | `trace_block` (only on [select chains](https://docs.envio.dev/docs/HyperRPC/hyperrpc-supported-networks.md)) |
HyperRPC also serves the MIP-16 query methods `eth_queryBlocks`, `eth_queryTransactions` and `eth_queryLogs`. See [MIP-16 query methods](https://docs.envio.dev/docs/HyperRPC/mip-16.md).
Any other method outside MIP-16, including state reads such as `eth_call`, `eth_getBalance` and `eth_getCode` and writes such as `eth_sendRawTransaction`, returns JSON-RPC error `-32601` with `Method not found: `.
### Limits and Errors
- **Block parameters:** block numbers, `latest` and `earliest`. `pending` is not supported by most methods, and `safe` and `finalized` are not accepted.
- **Batches:** up to 500 calls per batch request. A larger batch fails with `-32000` `Limit exceeded: More than 500 requests`.
- **`eth_getLogs`:** there is no block-range cap, but one call returns at most 50,000 logs. Above that it fails with `-32000` `Limit exceeded: More than 50000 logs returned; this block range should work: [0x..., 0x...]`, which suggests a smaller range to retry with.
- **Response size:** a response larger than 150 MB fails with `-32000` `Limit exceeded: Response size larger than 150 MB`.
- **Filters:** `eth_newFilter` creates log filters only. Filters are not persisted and can disappear without notice. Poll with `eth_getLogs` if you can't afford to miss data.
- **Traces:** on an endpoint without traces, `trace_block` returns `-32004` with a message that points to the chain's traces endpoint, or to Discord support if there is none.
## Supported Networks
HyperRPC is available across numerous EVM-compatible networks. For the most up-to-date list of supported chains, please see our [Supported Networks](https://docs.envio.dev/docs/HyperRPC/hyperrpc-supported-networks.md) page.
## Getting Started
To start using HyperRPC:
1. **Get Access**:
- Visit our [Supported Networks](https://docs.envio.dev/docs/HyperRPC/hyperrpc-supported-networks.md) page to find all available HyperRPC endpoints
- Each network has a ready-to-use URL that you can start using immediately
2. **Add Your API Token** (required):
- Requests without an API token are rejected. See [API Tokens](https://docs.envio.dev/docs/HyperSync/api-tokens) for how to create one and common errors.
- Append your token to the endpoint URL. Example:
```text
https://100.rpc.hypersync.xyz/
```
- If you don't have a token yet, you can generate one on the [HyperRPC Tokens](https://envio.dev/app/hyperrpc-tokens) page of the Envio Dashboard. A token from a HyperSync-only package gets HTTP 403 `Your token does not have access to this product`.
3. **Use Like a Standard RPC**:
```javascript
// Example: Fetching logs with HyperRPC
const response = await fetch("https://100.rpc.hypersync.xyz/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
jsonrpc: "2.0",
id: 1,
method: "eth_getLogs",
params: [
{
fromBlock: "0x1000000",
toBlock: "0x1000100",
address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d", // WXDAI on Gnosis
},
],
}),
});
```
4. **Provide Feedback**:
Your testing and feedback are incredibly valuable as we continue to improve HyperRPC. Let us know about your experience in our [Discord](https://discord.gg/envio).
## Billing
A free tier with rate-limited endpoints is available for development, at no cost. See [HyperRPC pricing](https://envio.dev/pricing/hyperrpc).
Beyond the free tier, HyperRPC usage is billed monthly in arrears at **$4 per million JSON-RPC method calls**, with a $1 monthly minimum. Each method in a JSON-RPC batch request counts as one call.
:::note Sub-month invoicing
Invoices normally cover a full calendar month, but usage may occasionally be invoiced for a sub-period of the month, for example a mid-month invoice when usage is substantial, with the remainder of the month invoiced at month end. Split invoices never overlap, so no usage is ever billed twice, and the $1 monthly minimum applies at most once per calendar month.
:::
## Development Status
:::caution Important Notice
- HyperRPC is under active development to further improve performance and stability
- It is designed for read-only operations and does not support all standard RPC methods
- It has not yet undergone formal security audits
- We welcome questions and feedback in our [Discord](https://discord.gg/envio)
:::
---
---
# HyperRPC endpoints and chain IDs by network
> Reference table of HyperRPC endpoint URLs and network IDs for every supported chain, with API token requirements and notes on trace add-ons and start blocks.
:::note
Please note we are rapidly adding new supported networks. If you don't see your network here or would like us to add a network to HyperRPC, pop us a message in [Discord](https://discord.gg/envio).
:::
:::caution API Token Required
Requests without an API token are rejected. Append your token to the endpoint URL. See [API Tokens](https://docs.envio.dev/docs/HyperSync/api-tokens) for how to create one:
```text
https://100.rpc.hypersync.xyz/
```
:::
:::note
*These are HyperRPC endpoints. For HyperSync endpoints, see [HyperSync Supported Networks](https://docs.envio.dev/docs/HyperSync/hypersync-supported-networks).*
:::
Every endpoint below also serves the [MIP-16 query methods](https://docs.envio.dev/docs/HyperRPC/mip-16.md).
Here is a table of the currently supported networks on HyperRPC and their respective URL endpoints.
| Network Name | Network ID | URL |
| --- | --- | --- |
| Ab | 36888 | https://ab.rpc.hypersync.xyz or https://36888.rpc.hypersync.xyz |
| Abstract | 2741 | https://abstract.rpc.hypersync.xyz or https://2741.rpc.hypersync.xyz |
| Arbitrum | 42161 | https://arbitrum.rpc.hypersync.xyz or https://42161.rpc.hypersync.xyz |
| Arbitrum Nova | 42170 | https://arbitrum-nova.rpc.hypersync.xyz or https://42170.rpc.hypersync.xyz |
| Arbitrum Sepolia | 421614 | https://arbitrum-sepolia.rpc.hypersync.xyz or https://421614.rpc.hypersync.xyz |
| Arc | 5042 | https://arc.rpc.hypersync.xyz or https://5042.rpc.hypersync.xyz |
| Arc Testnet | 5042002 | https://arc-testnet.rpc.hypersync.xyz or https://5042002.rpc.hypersync.xyz |
| Aurora | 1313161554 | https://aurora.rpc.hypersync.xyz or https://1313161554.rpc.hypersync.xyz |
| Avalanche | 43114 | https://avalanche.rpc.hypersync.xyz or https://43114.rpc.hypersync.xyz |
| Base | 8453 | https://base.rpc.hypersync.xyz or https://8453.rpc.hypersync.xyz |
| Base Sepolia | 84532 | https://base-sepolia.rpc.hypersync.xyz or https://84532.rpc.hypersync.xyz |
| Base Traces* | 8453 | Access on request - [contact us](https://discord.gg/envio) |
| Berachain | 80094 | https://berachain.rpc.hypersync.xyz or https://80094.rpc.hypersync.xyz |
| Blast | 81457 | https://blast.rpc.hypersync.xyz or https://81457.rpc.hypersync.xyz |
| Boba | 288 | https://boba.rpc.hypersync.xyz or https://288.rpc.hypersync.xyz |
| Bsc | 56 | https://bsc.rpc.hypersync.xyz or https://56.rpc.hypersync.xyz |
| Bsc Testnet | 97 | https://bsc-testnet.rpc.hypersync.xyz or https://97.rpc.hypersync.xyz |
| Celo | 42220 | https://celo.rpc.hypersync.xyz or https://42220.rpc.hypersync.xyz |
| Chiliz | 88888 | https://chiliz.rpc.hypersync.xyz or https://88888.rpc.hypersync.xyz |
| Citrea | 4114 | https://citrea.rpc.hypersync.xyz or https://4114.rpc.hypersync.xyz |
| Citrea Testnet | 5115 | https://citrea-testnet.rpc.hypersync.xyz or https://5115.rpc.hypersync.xyz |
| Curtis | 33111 | https://curtis.rpc.hypersync.xyz or https://33111.rpc.hypersync.xyz |
| Cyber | 7560 | https://cyber.rpc.hypersync.xyz or https://7560.rpc.hypersync.xyz |
| Eth Traces* | 1 | Access on request - [contact us](https://discord.gg/envio) |
| Ethereum Mainnet | 1 | https://eth.rpc.hypersync.xyz or https://1.rpc.hypersync.xyz |
| Etherlink | 42793 | https://etherlink.rpc.hypersync.xyz or https://42793.rpc.hypersync.xyz |
| Fantom | 250 | https://fantom.rpc.hypersync.xyz or https://250.rpc.hypersync.xyz |
| Flare | 14 | https://flare.rpc.hypersync.xyz or https://14.rpc.hypersync.xyz |
| Fraxtal | 252 | https://fraxtal.rpc.hypersync.xyz or https://252.rpc.hypersync.xyz |
| Fuji | 43113 | https://fuji.rpc.hypersync.xyz or https://43113.rpc.hypersync.xyz |
| Gnosis | 100 | https://gnosis.rpc.hypersync.xyz or https://100.rpc.hypersync.xyz |
| Gnosis Chiado | 10200 | https://gnosis-chiado.rpc.hypersync.xyz or https://10200.rpc.hypersync.xyz |
| Gnosis Traces | 100 | Access on request - [contact us](https://discord.gg/envio) |
| Harmony Shard 0 | 1666600000 | https://harmony-shard-0.rpc.hypersync.xyz or https://1666600000.rpc.hypersync.xyz |
| Hoodi | 560048 | https://hoodi.rpc.hypersync.xyz or https://560048.rpc.hypersync.xyz |
| Hyperliquid | 999 | https://hyperliquid.rpc.hypersync.xyz or https://999.rpc.hypersync.xyz |
| Injective* | 1776 | https://injective.rpc.hypersync.xyz or https://1776.rpc.hypersync.xyz |
| Ink | 57073 | https://ink.rpc.hypersync.xyz or https://57073.rpc.hypersync.xyz |
| Katana | 747474 | https://katana.rpc.hypersync.xyz or https://747474.rpc.hypersync.xyz |
| Linea | 59144 | https://linea.rpc.hypersync.xyz or https://59144.rpc.hypersync.xyz |
| Lisk | 1135 | https://lisk.rpc.hypersync.xyz or https://1135.rpc.hypersync.xyz |
| Lukso | 42 | https://lukso.rpc.hypersync.xyz or https://42.rpc.hypersync.xyz |
| Lukso Testnet | 4201 | https://lukso-testnet.rpc.hypersync.xyz or https://4201.rpc.hypersync.xyz |
| Manta | 169 | https://manta.rpc.hypersync.xyz or https://169.rpc.hypersync.xyz |
| Mantle | 5000 | https://mantle.rpc.hypersync.xyz or https://5000.rpc.hypersync.xyz |
| Megaeth | 4326 | https://megaeth.rpc.hypersync.xyz or https://4326.rpc.hypersync.xyz |
| Megaeth Testnet2 | 6343 | https://megaeth-testnet2.rpc.hypersync.xyz or https://6343.rpc.hypersync.xyz |
| Merlin | 4200 | https://merlin.rpc.hypersync.xyz or https://4200.rpc.hypersync.xyz |
| Metall2 | 1750 | https://metall2.rpc.hypersync.xyz or https://1750.rpc.hypersync.xyz |
| Mode | 34443 | https://mode.rpc.hypersync.xyz or https://34443.rpc.hypersync.xyz |
| Monad | 143 | https://monad.rpc.hypersync.xyz or https://143.rpc.hypersync.xyz |
| Monad Testnet | 10143 | https://monad-testnet.rpc.hypersync.xyz or https://10143.rpc.hypersync.xyz |
| Moonbeam *(indexing halted, historical data only)* | 1284 | https://moonbeam.rpc.hypersync.xyz or https://1284.rpc.hypersync.xyz |
| Morph | 2818 | https://morph.rpc.hypersync.xyz or https://2818.rpc.hypersync.xyz |
| Opbnb | 204 | https://opbnb.rpc.hypersync.xyz or https://204.rpc.hypersync.xyz |
| Optimism | 10 | https://optimism.rpc.hypersync.xyz or https://10.rpc.hypersync.xyz |
| Optimism Sepolia | 11155420 | https://optimism-sepolia.rpc.hypersync.xyz or https://11155420.rpc.hypersync.xyz |
| Plasma | 9745 | https://plasma.rpc.hypersync.xyz or https://9745.rpc.hypersync.xyz |
| Plume | 98866 | https://plume.rpc.hypersync.xyz or https://98866.rpc.hypersync.xyz |
| Polygon | 137 | https://polygon.rpc.hypersync.xyz or https://137.rpc.hypersync.xyz |
| Polygon Amoy | 80002 | https://polygon-amoy.rpc.hypersync.xyz or https://80002.rpc.hypersync.xyz |
| Polygon zkEVM *(indexing halted, historical data only)* | 1101 | https://polygon-zkevm.rpc.hypersync.xyz or https://1101.rpc.hypersync.xyz |
| Robinhood | 4663 | https://robinhood.rpc.hypersync.xyz or https://4663.rpc.hypersync.xyz |
| Rootstock | 30 | https://rootstock.rpc.hypersync.xyz or https://30.rpc.hypersync.xyz |
| Scroll | 534352 | https://scroll.rpc.hypersync.xyz or https://534352.rpc.hypersync.xyz |
| Sei* | 1329 | https://sei.rpc.hypersync.xyz or https://1329.rpc.hypersync.xyz |
| Sei Testnet* | 1328 | https://sei-testnet.rpc.hypersync.xyz or https://1328.rpc.hypersync.xyz |
| Sepolia | 11155111 | https://sepolia.rpc.hypersync.xyz or https://11155111.rpc.hypersync.xyz |
| Shimmer Evm | 148 | https://shimmer-evm.rpc.hypersync.xyz or https://148.rpc.hypersync.xyz |
| Somnia | 5031 | https://somnia.rpc.hypersync.xyz or https://5031.rpc.hypersync.xyz |
| Somnia Testnet | 50312 | https://somnia-testnet.rpc.hypersync.xyz or https://50312.rpc.hypersync.xyz |
| Soneium | 1868 | https://soneium.rpc.hypersync.xyz or https://1868.rpc.hypersync.xyz |
| Sonic | 146 | https://sonic.rpc.hypersync.xyz or https://146.rpc.hypersync.xyz |
| Sonic Testnet | 14601 | https://sonic-testnet.rpc.hypersync.xyz or https://14601.rpc.hypersync.xyz |
| Sophon | 50104 | https://sophon.rpc.hypersync.xyz or https://50104.rpc.hypersync.xyz |
| Stable | 988 | Access on request - [contact us](https://discord.gg/envio) |
| Superseed | 5330 | https://superseed.rpc.hypersync.xyz or https://5330.rpc.hypersync.xyz |
| Swell *(indexing halted, historical data only)* | 1923 | https://swell.rpc.hypersync.xyz or https://1923.rpc.hypersync.xyz |
| Tempo | 4217 | https://tempo.rpc.hypersync.xyz or https://4217.rpc.hypersync.xyz |
| Tron | 728126428 | https://tron.rpc.hypersync.xyz or https://728126428.rpc.hypersync.xyz |
| Unichain | 130 | https://unichain.rpc.hypersync.xyz or https://130.rpc.hypersync.xyz |
| Worldchain | 480 | https://worldchain.rpc.hypersync.xyz or https://480.rpc.hypersync.xyz |
| XDC | 50 | Access on request - [contact us](https://discord.gg/envio) |
| XDC Testnet | 51 | Access on request - [contact us](https://discord.gg/envio) |
| Zeta | 7000 | https://zeta.rpc.hypersync.xyz or https://7000.rpc.hypersync.xyz |
| Zircuit | 48900 | Access on request - [contact us](https://discord.gg/envio) |
| ZKsync | 324 | https://zksync.rpc.hypersync.xyz or https://324.rpc.hypersync.xyz |
| Zora | 7777777 | https://zora.rpc.hypersync.xyz or https://7777777.rpc.hypersync.xyz |
**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)
---
# MIP-16 query methods
> Use the MIP-16 query methods on HyperRPC to filter blocks, transactions and logs on the server, select only the fields you need and page through any block range.
[MIP-16](https://github.com/monad-crypto/MIPs/blob/main/MIPs/MIP-16.md) adds RPC query methods that filter on the server, return only the fields you select, and can join related objects, such as each log's transaction and block. HyperRPC serves them on every [supported network](https://docs.envio.dev/docs/HyperRPC/hyperrpc-supported-networks.md), mainnets and testnets alike, alongside the [standard methods](https://docs.envio.dev/docs/HyperRPC/overview-hyperrpc.md#supported-methods).
## Methods
| Method | Filters | Status |
| --- | --- | --- |
| `eth_queryBlocks` | `miner` | Live |
| `eth_queryTransactions` | `from`, `to`, function `selector` | Live |
| `eth_queryLogs` | `address`, `topics` | Live |
| `eth_queryTraces` | | Coming soon |
| `eth_queryTransfers` | | Coming soon |
See the [MIP-16 spec](https://github.com/monad-crypto/MIPs/blob/main/MIPs/MIP-16.md) and its [latest revision](https://github.com/monad-crypto/MIPs/pull/89) for every filter and field.
## Endpoints
Send MIP-16 requests to the same HyperRPC endpoint you use for standard methods on any network:
```text
https://.rpc.hypersync.xyz/
```
Find the endpoint for each network on the [supported networks](https://docs.envio.dev/docs/HyperRPC/hyperrpc-supported-networks.md) page. Requests need an API token. See [API Tokens](https://docs.envio.dev/docs/HyperSync/api-tokens) for how to create one.
## Example
The request works the same way on every network. This one runs on Monad and returns the most recent WMON `deposit()` calls, newest first. It filters by the WMON contract address and the `deposit()` function selector.
```bash
curl https://monad.rpc.hypersync.xyz/ \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_queryTransactions",
"params": [{
"filter": {
"to": "0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A",
"selector": "0xd0e30db0"
},
"fields": {
"transactions": ["hash", "from", "value", "blockNumber"]
},
"order": "desc"
}]
}'
```
The first page may be empty, so keep paging (see below). A page with a match looks like this:
```json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": {
"transactions": [
{
"blockNumber": "0x725e079",
"from": "0x39c06b54686b0540d6d57a254b976b1df4310df1",
"hash": "0xb22654167eb03199c54907d11bc0757003576ee90f41232394bb596c80e2d49f",
"value": "0x1b1ae4d6e2ef500000"
}
]
},
"fromBlock": {
"number": "0x725e3d2",
"hash": "0xbb79588ba79c36ab2768ead580c0e84175f29cfd229d714aa1ca7b1b1e1a0cbb",
"parentHash": "0x9c021696e3622c938b0f5b0ff8311c7f1e4a2181b8f712a8951072680b1b46a5"
},
"toBlock": {
"number": "0x0",
"hash": "0x0c47353304f22b1c15706367d739b850cda80b5c87bbc335014fef3d88deaac9",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
},
"cursorBlock": {
"number": "0x725dfeb",
"hash": "0x94a8412730cffc4c3ce9b2c6b0eefd8fbef93b50f664646d8e0c0d3d2dfdd7f9",
"parentHash": "0x778b1459435ef59b8b1c9ec8c90023126bec785b1bffe52032a699ea0347104c"
}
}
}
```
## Request parameters
| Parameter | Required | Description |
| --- | --- | --- |
| `fromBlock` | No | Start of the range, as a hex block number such as `0x725e079` or a tag such as `latest` or `earliest`. With `desc`, this is the newest block |
| `toBlock` | No | End of the range, as a hex block number or a tag. With `desc`, this is the oldest block |
| `order` | No | `asc` (default, oldest first) or `desc` (newest first) |
| `target` | No | Target number of results per page, as hex (for example `0x64`). Joined objects don't count towards it |
| `filter` | No | Method-specific filters, such as `to` and `selector` for transactions |
| `fields` | No | Fields to return, and related objects to join. If you set it, include the method's own type, such as `logs` for `eth_queryLogs` |
## Response fields
| Field | Description |
| --- | --- |
| `data` | The matching results, with only the fields you selected, plus any joined objects |
| `fromBlock` | The first block of the page, with its hash and parent hash |
| `toBlock` | The last block of the requested range |
| `cursorBlock` | The last block this page covers |
## Paging
Every page ends on a whole block, reported as `cursorBlock`. To get the next page, repeat the request with a new `fromBlock`:
| Order | Next `fromBlock` |
| --- | --- |
| `asc` (default) | `cursorBlock` + 1 |
| `desc` | `cursorBlock` - 1 |
A page can return fewer results than `target`, or none. Keep paging from `cursorBlock` until you have the results you need or reach `toBlock`.
## Reorg detection
When you page forwards near the chain tip, compare each page's `fromBlock.parentHash` with the previous page's `cursorBlock.hash`. If they differ, a reorg has replaced blocks you already read, so roll back to the newest block you hold that still matches, and page again from the block after it.
## Errors
| Code | Meaning |
| --- | --- |
| `-32602` | Invalid params, such as an unknown request field or `fields` without the method's own type |
| `-32001` | Some or all of the requested range, including blocks not yet produced, is outside the blocks HyperRPC serves |
| `-32004` | The method isn't supported yet |
| `-32005` | The first block of the range was too large to return in one page |
| HTTP `429` | Rate limited. Wait before retrying |
## Hand this to your coding agent
```text
Using the MIP-16 method eth_queryLogs on Envio HyperRPC, write a Node.js script
that collects every Transfer event from the token contract I name, over the block
range I give, with the sender of each transaction and the timestamp of each block.
- Use https://.rpc.hypersync.xyz/$ENVIO_API_TOKEN for the network I name
- Filter by address and the Transfer topic
- Request logs, transactions and blocks in one call with fields.logs,
fields.transactions and fields.blocks
- Include the join fields: fields.logs needs transactionHash and blockNumber,
fields.transactions needs hash and from, fields.blocks needs number and
timestamp
- Join them with logs.transactionHash = transactions.hash and
logs.blockNumber = blocks.number
- Send block numbers as 0x-prefixed hex
- Page with cursorBlock: the next request starts at cursorBlock + 1, until
cursorBlock reaches toBlock
- If the response is HTTP 429, wait and retry
Docs: https://docs.envio.dev/docs/HyperRPC/mip-16
Spec: https://github.com/monad-crypto/MIPs/blob/main/MIPs/MIP-16.md
```
---