L0vdL0vd

eth_getBlockReceipts

Returns the receipts of every transaction in a block in one call.

Archive · Works on any past block

Much faster than calling eth_getTransactionReceipt per transaction when you backfill whole blocks.

curl https://eth.l0vdinfra.com/YOUR_KEY \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1,"method":"eth_getBlockReceipts","params":["0x1208a5f"]}'

Example response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "blockHash": "0xc7a2fd354a9a1512636dad41b44e618905f5e8d2500f08c515c3bbbdf5261f6a",
      "blockNumber": "0x1208a5f",
      "contractAddress": null,
      "cumulativeGasUsed": "0x5208",
      "effectiveGasPrice": "0x104c533c00",
      "from": "0x958da591e94cc7678931915018f0af1a0c81b88f",
      "gasUsed": "0x5208",
      "logs": [],
      "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000…",
      "status": "0x1",
      "to": "0x0016c0d0343e8f2c3a7b6a51606b84b1545ec606",
      "transactionHash": "0xbb62ecfc053ce6aa2f12dd09261e27e7c06b46dd015c67e28d5f7200bd6251ac",
      "transactionIndex": "0x0",
      "type": "0x0"
    },
    {
      "blockHash": "0xc7a2fd354a9a1512636dad41b44e618905f5e8d2500f08c515c3bbbdf5261f6a",
      "blockNumber": "0x1208a5f",
      "contractAddress": null,
      "cumulativeGasUsed": "0xa410",
      "effectiveGasPrice": "0x6b49d2000",
      "from": "0x4e80744fa23cec76e1621ce0dfaceb4b1d532e12",
      "gasUsed": "0x5208",
      "logs": [],
      "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000…",
      "status": "0x1",
      "to": "0x32730bf8d98c4115d29251c1008558fc6de63940",
      "transactionHash": "0xda13880bec0b648aa3bbc5b036811443b036314da24a537daf251cf659f7404c",
      "transactionIndex": "0x1",
      "type": "0x2"
    }
  ]
}

Long arrays and hex strings are shortened in this example.

Params and your endpoint

Parameters

blockstringrequired
Block number in hex (e.g. "0x1208a5f") or a tag: "latest", "safe", "finalized", "earliest" or "pending". L0vd endpoints run archive nodes, so any historical block works.

Returns

array Receipt objects in transaction order.

statusstring
"0x1" success, "0x0" failure.
gasUsedstring
Gas used by this transaction, hex.
cumulativeGasUsedstring
Gas used in the block up to and including this transaction, hex.
effectiveGasPricestring
Price actually paid per gas, hex wei.
contractAddressstring
Created contract, or null.
logsarray
Logs emitted by the transaction.
transactionHashstring
Transaction hash.
blockNumberstring
Block number, hex.

When to use it

Get every transaction receipt of a block in one call: statuses, gas used and all logs.

The fastest way to backfill full blocks; one request replaces hundreds of eth_getTransactionReceipt calls.

How to read the result

An array in transaction order. Each receipt has status, gasUsed, effectiveGasPrice and its logs.

Tips

  • Busy blocks return several megabytes; process them as a stream or one block at a time.
  • Combine with eth_getBlockByNumber(…, true) when you also need transaction inputs.

Related methods