Public RPC eth_getLogs Limits

Base Sepolia public RPC eth_getLogs limits

4 keyless Base Sepolia RPC endpoints tested on 2026-11-13. Largest range that worked: 50,000 blocks on base-sepolia-rpc.publicnode.com.

EndpointLargest eth_getLogs range that workedLatency (median of 3)Previous (2026-10-23)Archive (block 1 balance)Error at next size
base-sepolia-rpc.publicnode.com50,000 blocks183 ms50,000noexceed maximum block range: 50000
base-sepolia-rpc.blockreq.com/v1/rpc/public500 blocks162 ms500noeth_getLogs range of 1000 blocks exceeds the 500-block limit for this plan; split the request into ranges of at most 500 blocks
sepolia.base.org100 blocks159 ms100yeseth_getLogs is limited to a 200 range
base-sepolia.drpc.orggetLogs refused139 ms10noRequest timeout on the free plan, please upgrade to paid plan

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