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.
| Endpoint | Largest eth_getLogs range that worked | Latency (median of 3) | Previous (2026-10-23) | Archive (block 1 balance) | Error at next size |
|---|---|---|---|---|---|
| base-sepolia-rpc.publicnode.com | 50,000 blocks | 183 ms | 50,000 | no | exceed maximum block range: 50000 |
| base-sepolia-rpc.blockreq.com/v1/rpc/public | 500 blocks | 162 ms | 500 | no | eth_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.org | 100 blocks | 159 ms | 100 | yes | eth_getLogs is limited to a 200 range |
| base-sepolia.drpc.org | getLogs refused | 139 ms | 10 | no | Request 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;
}