Parity API
Alchemy provides access to OpenEthereum's Parity API which exposes additional Parity-only methods.

parity_getBlockReceipts

Get receipts from all transactions from particular block, instead of fetching the receipts one-by-one.

Parameters

  1. 1.
    Quantity or Tag - integer of a block number, or the string 'earliest', 'latest' or 'pending', as in the default block parameter.
1
params: ["0x8D2B29"]
Copied!

Returns

  • Array - The list of all the transaction’s receipts of the given block

Example

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":"parity_getBlockReceipts","params":["0x8D2B29"]}'
Copied!
Response
1
{
2
"id": 1,
3
"jsonrpc": "2.0",
4
"result": [
5
{
6
"blockHash": "0x64d67cf84d95f8dfa1e1c3b5a5260aaf801ac99529b4ec3ae19bb06ba78c7bd5",
7
"blockNumber": "0x8d2b29",
8
"contractAddress": null,
9
"cumulativeGasUsed": "0x5208",
10
"effectiveGasPrice": "0x12a05f200",
11
"from": "0x4d6bb4ed029b33cf25d0810b029bd8b1a6bcab7b",
12
"gasUsed": "0x5208",
13
"logs": [],
14
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
15
"root": null,
16
"status": "0x1",
17
"to": "0xe9c245293dac615c11a5bf26fcec91c3617645e4",
18
"transactionHash": "0x1eba82fb5e8426b520c49a5d8dc6c24157e8f45fb9102aca4a99f5617c1539fc",
19
"transactionIndex": "0x0"
20
},
21
{
22
"blockHash": "0x64d67cf84d95f8dfa1e1c3b5a5260aaf801ac99529b4ec3ae19bb06ba78c7bd5",
23
"blockNumber": "0x8d2b29",
24
"contractAddress": null,
25
"cumulativeGasUsed": "0x3fc28",
26
"effectiveGasPrice": "0x12a05f200",
27
"from": "0x0caf0d921b2bd24ca04e1f06344e976af223783b",
28
"gasUsed": "0x3aa20",
29
"logs": [],
30
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
31
"root": null,
32
"status": "0x1",
33
"to": "0xf2bb17cb59746cae43d65eec233925b6584cddef",
34
"transactionHash": "0x70a50d28db69e5c7a8686141f282530d52e7e3c625296dc53eb5684afa727886",
35
"transactionIndex": "0x1"
36
}
37
]
38
}
Copied!
Last modified 16d ago