eth_getBlockReceipts
Returns every transaction receipt for a given block in a single call.
Parameters
Section titled “Parameters”| Position | Name | Type | Description |
|---|---|---|---|
| 1 | block | string | Block number in hex, or "latest", "pending", "safe", "finalized", "earliest". Required. |
Returns
Section titled “Returns”| Field | Type | Description |
|---|---|---|
result | array | Array of receipt objects, one per transaction in the block. See eth_getTransactionReceipt for the receipt object shape. |
Example
Section titled “Example”Request
Section titled “Request”curl https://mainnet.base.org \ -X POST -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_getBlockReceipts","params":["latest"],"id":1}'curl https://mainnet-preconf.base.org \ -X POST -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_getBlockReceipts","params":["pending"],"id":1}'Response
Section titled “Response”{ "jsonrpc": "2.0", "id": 1, "result": [ { "transactionHash": "0xabc123...", "blockNumber": "0x158a0e9", "status": "0x1", "gasUsed": "0x5208", "type": "0x2" } ]}