TriportRPC

eth_getBlockReceipts

BNB Smart Chain / https://triport.io/rpc/bsc

Minimum tier: Pro

BNB Smart Chain method guide

Last updated:

eth_getBlockReceipts returns an array containing the transaction receipts for one BNB Smart Chain block.

Use it when an indexer needs status, gas, logs, and contract-creation results for the complete block without looking up every receipt separately. The block is selected with a standard tag or hex block number.

Unlike eth_getTransactionReceipt, this method is block-scoped and can return many receipts. Unlike eth_getLogs, it returns receipt objects rather than only matching event logs.

Parameters

eth_getBlockReceipts parameters
NameTypeRequiredDescription
blockBlockTagYes

Returns

eth_getBlockReceipts return value
FieldType
receiptsReceiptList

Examples

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

Usage

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

FAQ

What does eth_getBlockReceipts do?
Return all transaction receipts in a block.
How many credits does eth_getBlockReceipts cost?
eth_getBlockReceipts costs 5 credit(s) per call on Triport by default.
Is eth_getBlockReceipts available over WebSocket?
eth_getBlockReceipts is an HTTP JSON-RPC method.