TriportRPC

eth_getBlockReceipts

Polygon / https://triport.io/polygon

Minimum tier: Free

Polygon method guide

Last updated:

eth_getBlockReceipts returns the receipts for all transactions in a given block as a single array. It is the bulk equivalent of calling eth_getTransactionReceipt once per transaction — but in a single round trip, which is dramatically faster when you need to index or analyze a whole block (gas usage, event logs, contract creations, status flags).

Use it when you are building an indexer, analytics pipeline, or block explorer that processes every transaction in a block. For pulling only events that match a filter (by address/topic), prefer eth_getLogs instead; for a single transaction's outcome, use eth_getTransactionReceipt.

Gotchas to plan for:

  • Payload-heavy. A typical Polygon block carries 50–150 transactions, so a single response is commonly 50–300 KB. Make sure your HTTP client and any intermediate proxy allow response bodies of that size and set generous read timeouts.
  • Block cadence. Polygon block time is ~2.1 s, so latest advances roughly every two seconds. When polling the chain tip, align your interval to that cadence rather than hammering the endpoint.
  • Still cheaper than N calls. Even though the response is large, one eth_getBlockReceipts call avoids the per-transaction network round-trips of N×eth_getTransactionReceipt, which is the main reason to use it for indexing.

Parameters

This method takes no parameters.

Returns

eth_getBlockReceipts return value
FieldType
resultobject

Examples

curl https://triport.io/polygon \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_getBlockReceipts","params":[]}'
const res = await fetch("https://triport.io/polygon", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getBlockReceipts",
  "params": []
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/polygon",
    headers={"Authorization": "Bearer <api-key>"},
    json={"jsonrpc":"2.0","id":1,"method":"eth_getBlockReceipts","params":[]},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: Polygon.
  3. Clusters: mainnet.
  4. Credit cost: 1 per call.

FAQ

What does eth_getBlockReceipts do?
Returns every transaction receipt for a single Polygon block in one call — the fast path for block-level indexing.
How many credits does eth_getBlockReceipts cost?
eth_getBlockReceipts costs 1 credit(s) per call on Triport by default.
Is eth_getBlockReceipts available over WebSocket?
eth_getBlockReceipts is an HTTP JSON-RPC method.