Public RPC eth_getLogs Limits

Polygon PoS public RPC eth_getLogs limits

11 keyless Polygon PoS RPC endpoints tested on 2026-11-13. Largest range that worked: 100,000 blocks on polygon.gateway.tenderly.co.

EndpointLargest eth_getLogs range that workedLatency (median of 3)Previous (2026-10-23)Archive (block 1 balance)Error at next size
polygon.gateway.tenderly.co100,000+ blocks228 ms100,000+yes
rpc-mainnet.matic.quiknode.pro10,000 blocks376 ms10,000yeseth_getLogs is limited to a 10,000 range
polygon-bor-rpc.publicnode.com10,000 blocks170 ms10,000noexceed maximum block range: 10000
polygon-bor-rpc.blockreq.com/v1/rpc/public1,000 blocks166 ms1,000nopublic endpoint only serves recent blocks (last 1024). Register at blockreq.com for historical / archive access.
polygon.drpc.org100 blocks158 ms100yesranges over 10000 blocks are not supported on free plan
1rpc.io/matic10 blocks178 ms10noeth_getLogs is limited to 0 - 50 blocks range
rpc.satelink.network/rpc/polygondown / error-down-int() can't convert non-string with explicit base
rpcfree.com/polygon-rpcdown / error-down-HTTP 200
xrpc.cl/polygondown / error-refused-XRPC Cluster: Backend polygon node currently syncing and fallbacks busy
api.blockvectra.com/v1/polygon_mainnet/publicdown / error-refused-public chain pool is busy
polygon-rpc.comdown / error-down-message: API key disabled, reason: tenant disabled, json-rpc code: -32051, rest code: 403

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