Skip to content

5 min read · Updated 28 November 2026

eth_getLogs Block Range, Batch and -32005 Errors

Fix eth_getLogs block range, batch size limit and -32005 errors on our Robinhood Chain, BNB Chain and Polygon endpoints. Free vs paid limits and code.

Three limits explain most failed calls on our Robinhood Chain, BNB Chain and Polygon endpoints: how wide an eth_getLogs block range can be, how big a batch can be (the batch size limit), and how many requests may run at the same time. Read the code to tell them apart: -32602 is a block range that is too large, while -32005 is a batch, concurrency, connection or subscription limit. Splitting the work fixes both, and so does a paid plan.

Limits on Free and paid plans

These restrictions hold similarly true for Robinhood Chain, BNB Chain, and Polygon:

Control Free Paid
Batch size (HTTP and WebSocket) 1 item 100 items
eth_getLogs block range 150 blocks 10,000 blocks
eth_getLogs requests in flight 1 10
debug_* and trace_* methods blocked allowed
WebSocket connections 1 from 10

Rate limiting and buffer for each key between HTTP and WebSockets is shared. If your WebSocket subscription is active then your space for HTTP requests will be consumed.

eth_getLogs block range too large (-32602)

The eth_getLogs call covered more blocks than your plan allows: over 150 blocks on Free or over 10,000 on paid plans. The span you requested is named in the error message. Break the range into chunks and request them in sequence:

import { createPublicClient, http, parseAbiItem } from "viem";

const client = createPublicClient({
  transport: http("https://robinhood.rpc.orbitflare.com?api_key=YOUR_API_KEY"),
});

const event = parseAbiItem(
  "event Transfer(address indexed from, address indexed to, uint256 value)"
);
const CHUNK = 10_000n; // use 150n on the Free plan

async function getLogsInChunks(address: `0x${string}`, from: bigint, to: bigint) {
  const logs = [];
  for (let start = from; start <= to; start += CHUNK) {
    const end = start + CHUNK - 1n > to ? to : start + CHUNK - 1n;
    logs.push(...(await client.getLogs({ address, event, fromBlock: start, toBlock: end })));
  }
  return logs;
}

Request the chunks in sequence, not in parallel: Free allows only 1 eth_getLogs request in flight, and paid plans allow 10.

"Batch size limit exceeded" (-32005)

Your batch had too many items for your plan. On Free the batch size limit is 1 item, so batching is effectively off; paid plans take up to 100 items. Each batch item is also charged as one request toward your rate limit. Free users should send calls one by one, and paid users should cap batches at 100 items or fewer.

"Concurrent request limit exceeded" (-32005)

More requests were in flight at once than your plan allows. It often shows up on what seems to be a single call, because another client shares the key: a second service, a test script or an open WebSocket subscription. HTTP and WebSocket draw on one in-flight budget, so look at everything else running on the key. The error is temporary; retry after a short delay.

-32005 is also the code for the connection and subscription limits, and the message names the limit you reached.

Other EVM error codes

  • -32429: you went over your plan's requests per second. Back off, then retry.
  • -32601: your plan does not include the method, for example debug_* or trace_* on Free.
  • -32406: this key does not have WebSockets enabled.

Next step

If splitting and pacing still leave you short, a bigger plan is the next step. The EVM plans go from $0/month on Free up to $499/month on Performance, and every paid plan gets the paid limits shown in the table. Find the plans on our Robinhood Chain RPC page; they apply to the other two chains as well. BNB Chain details are on BNB Chain nodes, and our Polygon RPC URL guide lists Polygon endpoints and chain IDs.

Was this guide useful?

A useful starting point

Edit the brief, then copy it and open your assistant. Paste it into a new chat to get started.

Official sources included. You choose when to send.