Public RPC eth_getLogs Limits

OP Mainnet public RPC eth_getLogs limits

7 keyless OP Mainnet RPC endpoints tested on 2026-11-13. Largest range that worked: 100,000 blocks on optimism.gateway.tenderly.co.

EndpointLargest eth_getLogs range that workedLatency (median of 3)Previous (2026-10-23)Archive (block 1 balance)Error at next size
optimism.gateway.tenderly.co100,000+ blocks243 ms100,000+no
mainnet.optimism.io10,000 blocks270 ms10,000yeseth_getLogs is limited to a 10,000 range
optimism-rpc.publicnode.com5,000 blocks168 ms5,000noArchive requests require a personal token. Get one at: https://www.allnodes.com/publicnode
optimism-rpc.blockreq.com/v1/rpc/public1,000 blocks149 ms1,000nopublic endpoint only serves recent blocks (last 1024). Register at blockreq.com for historical / archive access.
optimism.drpc.org100 blocks149 ms100yesranges over 10000 blocks are not supported on free plan
1rpc.io/op10 blocks155 ms10noeth_getLogs is limited to 0 - 50 blocks range
xrpc.cl/optimismdown / error-down-XRPC Cluster: Backend optimism node currently syncing and fallbacks busy

Chunk your queries

// Chunked eth_getLogs that adapts to the provider's limit (viem)
async function getLogsChunked(client, filter, from, to, step = 2000n) {
  const out = [];
  for (let start = from; start <= to; ) {
    const end = start + step - 1n > to ? to : start + step - 1n;
    try {
      out.push(...await client.getLogs({ ...filter, fromBlock: start, toBlock: end }));
      start = end + 1n;
    } catch (e) {
      if (step === 1n) throw e;
      step = step / 2n; // range or result-size limit: halve and retry
    }
  }
  return out;
}

All chains · Error messages explained