Appearance
eth_getBlockReceipts
served · same as reth
Returns the receipts of all transactions of a block.
When to use
Use it to read the status, the gas and the logs of every transaction of a block in one request.
Example
bash
curl -s -X POST -H 'Content-Type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_getBlockReceipts", "params": ["0x18facaa"]}' \
http://127.0.0.1:8547json
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getBlockReceipts",
"params": [
"0x18facaa"
]
}Response
Live mainnet, block 26193066, 2026-10-14. Checked against reth 2.7: equal.
json
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"type": "0x2",
"status": "0x1",
"cumulativeGasUsed": "0x5208",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000... 114 more characters",
"transactionHash": "0x6aab65ac3b5c83ca28846ab031e5f75d853aa8f496c8f4b83760f35423a0b950",
"transactionIndex": "0x0",
"blockHash": "0x5ae7b3bea1d0773e6f124069319201fa7963401336f072a58f68bc3fee920047",
"blockNumber": "0x18facaa",
"gasUsed": "0x5208",
"effectiveGasPrice": "0x134d561bc",
"from": "0x8d8d7ea4761e3c0a78652331a844a121a63ac2b3",
"to": "0x351101b6341abb86b68bd5d18d26d8ddfe13fee1",
"contractAddress": null
},
"... 54 more items"
]
}Parameters
| Name | Type | Required | Meaning |
|---|---|---|---|
block | block number in hex, a tag, or an object with blockHash, see Block parameter | yes | The block. |
Returns
A list of receipts, in transaction order. null when the block is above the head. A block below the first block of the node gives the error 4444. See Receipt.
Notes and limits
- The node has the receipts of blocks from its start block.
Errors
| Code | Message | When |
|---|---|---|
| -32602 | Invalid params | A parameter is missing or does not parse. data has the text of reth, with the position. |
Compared with reth
The live example above gives the same answer on Cinder and on reth 2.7.
Related methods
eth_getTransactionReceipt, eth_getLogs.
Schema (OpenRPC)
The official specification: eth_getBlockReceipts in ethereum/execution-apis.
Parameter Block: Block number or Block tag or Block hash
json
{
"anyOf": [
{
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "Block number",
"type": "string"
},
{
"description": "`earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `latest`: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; `pending`: A sample next block built by the client on top of `latest` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying for `finalized` or `safe` block MUST be responded to with `-39001: Unknown block` error",
"enum": [
"earliest",
"finalized",
"safe",
"latest",
"pending"
],
"title": "Block tag",
"type": "string"
},
{
"pattern": "^0x[0-9a-f]{64}$",
"title": "Block hash",
"type": "string"
}
],
"title": "Block number, tag, or block hash"
}Result: Not Found (null) or Receipts information
json
{
"oneOf": [
{
"title": "Not Found (null)",
"type": "null"
},
{
"items": {
"additionalProperties": false,
"properties": {
"blobGasPrice": {
"description": "The actual value per gas deducted from the sender's account for blob gas. Only specified for blob transactions as defined by EIP-4844.",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "blob gas price",
"type": "string"
},
"blobGasUsed": {
"description": "The amount of blob gas used for this specific transaction. Only specified for blob transactions as defined by EIP-4844.",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "blob gas used",
"type": "string"
},
"blockHash": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "block hash",
"type": "string"
},
"blockNumber": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "block number",
"type": "string"
},
"contractAddress": {
"description": "The contract address created, if the transaction was a contract creation, otherwise null.",
"oneOf": [
{
"pattern": "^0x[0-9a-fA-F]{40}$",
"title": "hex encoded address",
"type": "string"
},
{
"title": "Null",
"type": "null"
}
],
"title": "contract address"
},
"cumulativeGasUsed": {
"description": "The sum of gas used by this transaction and all preceding transactions in the same block.",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "cumulative gas used",
"type": "string"
},
"effectiveGasPrice": {
"description": "The actual value per gas deducted from the sender's account. Before EIP-1559, this is equal to the transaction's gas price. After, it is equal to baseFeePerGas + min(maxFeePerGas - baseFeePerGas, maxPriorityFeePerGas).",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "effective gas price",
"type": "string"
},
"from": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"title": "from",
"type": "string"
},
"gasUsed": {
"description": "The amount of gas used for this specific transaction alone.",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "gas used",
"type": "string"
},
"logs": {
"items": {
"additionalProperties": false,
"properties": {
"address": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"title": "address",
"type": "string"
},
"blockHash": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "block hash",
"type": "string"
},
"blockNumber": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "block number",
"type": "string"
},
"blockTimestamp": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "block timestamp",
"type": "string"
},
"data": {
"pattern": "^0x[0-9a-f]*$",
"title": "data",
"type": "string"
},
"logIndex": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "log index",
"type": "string"
},
"removed": {
"title": "removed",
"type": "boolean"
},
"topics": {
"items": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "32 hex encoded bytes",
"type": "string"
},
"title": "topics",
"type": "array"
},
"transactionHash": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "transaction hash",
"type": "string"
},
"transactionIndex": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "transaction index",
"type": "string"
}
},
"required": [
"transactionHash"
],
"title": "log",
"type": "object"
},
"title": "logs",
"type": "array"
},
"logsBloom": {
"pattern": "^0x[0-9a-f]{512}$",
"title": "logs bloom",
"type": "string"
},
"root": {
"description": "The post-transaction state root. Only specified for transactions included before the Byzantium upgrade.",
"pattern": "^0x[0-9a-f]{64}$",
"title": "state root",
"type": "string"
},
"status": {
"description": "Either 1 (success) or 0 (failure). Only specified for transactions included after the Byzantium upgrade.",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "status",
"type": "string"
},
"to": {
"description": "Address of the receiver or null in a contract creation transaction.",
"oneOf": [
{
"title": "Contract Creation (null)",
"type": "null"
},
{
"pattern": "^0x[0-9a-fA-F]{40}$",
"title": "Recipient Address",
"type": "string"
}
],
"title": "to"
},
"transactionHash": {
"pattern": "^0x[0-9a-f]{64}$",
"title": "transaction hash",
"type": "string"
},
"transactionIndex": {
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "transaction index",
"type": "string"
},
"type": {
"pattern": "^0x([0-9a-fA-F]?){1,2}$",
"title": "type",
"type": "string"
}
},
"required": [
"blockHash",
"blockNumber",
"from",
"cumulativeGasUsed",
"gasUsed",
"logs",
"logsBloom",
"transactionHash",
"transactionIndex",
"effectiveGasPrice"
],
"title": "Receipt information",
"type": "object"
},
"title": "Receipts information",
"type": "array"
}
]
}