eth_getBlockReceipts - Ethereum
Get all transaction receipts for a given block on Ethereum.
NOTE: This endpoint is currently only supported on Ethereum Mainnet.
For higher reliability, we recommend using alchemy_getTransactionReceipts instead of eth_getBlockReceipts.

Parameters

  • string - Block number or block hash to fetch transaction receipts for, or the string 'earliest', 'latest' or 'pending'.
1
params: ["0x7e5814a31cc6cccfc8fb739450314ef433ae097dd862161da15bf9627fd63df9"]
Copied!

Returns

  • result - [array] List of all the transaction receipt objects within the given block
    • transactionHash: [string], 32 Byte hash of the transaction.
    • transactionIndex: [string] Integer of the transactions index position in the block.
    • blockHash: [string] 32 Byte hash of the block where this transaction was in.
    • blockNumber: [string] Block number where this transaction was in.
    • from: [string] 20 Byte address of the sender.
    • to: [string] 20 Byte address of the receiver. null when it's a contract creation transaction.
    • cumulativeGasUsed: [string] The total amount of gas used when this transaction was executed in the block.
    • gasUsed: [string] The amount of gas used by this specific transaction alone.
    • contractAddress: [string] 20 Byte contract address created, if the transaction was a contract creation, otherwise null.
    • logs: [array] List of log objects, which this transaction generated.
    • logsBloom: [string] 256 Byte Bloom filter for light clients to quickly retrieve related logs.
    • effectiveGasPrice: [string] The actual value per gas deducted from the senders account. Omitted for pre-EIP1559 transactions.

Example

For a no-code example of eth_getBlockReceipts, check out the composer request.

Request

Curl
1
curl https://eth-mainnet.alchemyapi.io/v2/your-api-key \
2
-X POST \
3
-H "Content-Type: application/json" \
4
-d '{"jsonrpc":"2.0", "id":1, "method":"eth_getBlockReceipts","params":["0x7e5814a31cc6cccfc8fb739450314ef433ae097dd862161da15bf9627fd63df9"]'
Copied!

Response

1
{
2
"jsonrpc":"2.0"
3
"id":0
4
"result":[
5
{
6
"transactionHash": "0x04ae8960f7247f4c4577883d781842d3f5d4454d43eab3f3decaaea06680fe60",
7
"blockHash": "0x7e5814a31cc6cccfc8fb739450314ef433ae097dd862161da15bf9627fd63df9",
8
"blockNumber": "0xd8ee52",
9
"contractAddress": null,
10
"cumulativeGasUsed": "0xc9a1",
11
"effectiveGasPrice": "0x1bf08eb000",
12
"from": "0xdfd5293d8e347dfe59e90efd55b2956a1343963d",
13
"gasUsed": "0xc9a1",
14
"logs": [
15
{
16
"blockHash": "0x7e5814a31cc6cccfc8fb739450314ef433ae097dd862161da15bf9627fd63df9",
17
"address": "0xbb0e17ef65f82ab018d8edd776e8dd940327b28b",
18
"logIndex": "0x0",
19
"data": "0x00000000000000000000000000000000000000000000000088250d4b376b9800",
20
"removed": false,
21
"topics": [
22
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
23
"0x000000000000000000000000dfd5293d8e347dfe59e90efd55b2956a1343963d",
24
"0x00000000000000000000000053b8feb8bdff4d016dc4ec1570b894e007867d43"
25
],
26
"blockNumber": "0xd8ee52",
27
"transactionIndex": "0x0",
28
"transactionHash": "0x04ae8960f7247f4c4577883d781842d3f5d4454d43eab3f3decaaea06680fe60"
29
}
30
],
31
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000001000000000000000000000000000000000000000000000000000400000010000000000000000000000000000000000002000000000000000000000000001000000000008000000080000000000000000000000000000400000000000000000000000000000002000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
32
"status": "0x1",
33
"to": "0xbb0e17ef65f82ab018d8edd776e8dd940327b28b",
34
"transactionIndex": "0x0",
35
"type": "0x0"
36
}
37
.
38
.
39
.
Copied!