RPC method

eth_getBlockReceipts on Optimism

Supported on SwiftNodes

Measured 2026-10-04 by our weekly probe, which calls eth_getBlockReceipts through the same Optimism endpoint customers use.

What eth_getBlockReceipts does

Returns every transaction receipt in a block in one call, instead of one eth_getTransactionReceipt request per transaction. Indexers and accounting pipelines use it to read a whole block's outcomes and logs at once.

eth_getBlockReceipts on Optimism: what we measured

  • Optimism produces a block every 2.0 s, so following the chain with eth_getBlockReceipts is one request per block.
  • The finalized tag trails the head by about 889 blocks (30 minutes). Results newer than that can still change in a reorg; query up to "finalized" if you need settled data.

Example request

curl -s https://rpc.swiftnodes.io/rpc/optimism?key=YOUR_API_KEY \
  -X POST -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_getBlockReceipts","params":["latest"]}'
import { createPublicClient, http } from "viem";

const client = createPublicClient({ transport: http("https://rpc.swiftnodes.io/rpc/optimism?key=YOUR_API_KEY") });

// Any JSON-RPC method, typed loosely: eth_getBlockReceipts on Optimism
const result = await client.request({
  method: "eth_getBlockReceipts",
  params: ["latest"],
});

Other methods on Optimism

eth_getBlockReceipts on other chains

Support differs by chain; the full measured table is on the eth_getBlockReceipts reference.

Frequently asked questions

Does Optimism support eth_getBlockReceipts?

Yes. eth_getBlockReceipts answered correctly on the SwiftNodes Optimism endpoint in our weekly method probe (2026-10-04), which sends real requests through the customer path.

Are there limits on eth_getBlockReceipts on Optimism?

Optimism produces a block every 2.0 s, so following the chain with eth_getBlockReceipts is one request per block.

Optimism endpoints, live block height and WebSocket status are on the Optimism RPC page.

One key covers every chain we serve, and SwiftNodes has a free tier.