eth_getTransactionReceiptsByBlock
Polygon API - Returns all transaction receipts for the given block number or hash

Parameters

block_number in hex OR block_hash

Returns

Array of transaction receipt objects

Example

​Alchemy Composer​

The Alchemy Composer allows you to make a no-code example request via your browser. Try it out above!

Request

Curl
Postman
1
curl https://polygon-mainnet.g.alchemyapi.io/v2/your-api-key \
2
-X POST \
3
-H "Content-Type: application/json" \
4
-d '{"jsonrpc":"2.0","method":"eth_getTransactionReceiptsByBlock","params":["0x989689"], "id":1}'
Copied!
1
URL: https://polygon-mainnet.g.alchemyapi.io/v2/your-api-key
2
RequestType: POST
3
Body:
4
{
5
"jsonrpc":"2.0",
6
"method":"eth_getTransactionReceiptsByBlock",
7
"params":["0x989689"],
8
"id":1
9
}
Copied!

Result

1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"blockHash": "0x224c0c3153d6bf1f45f461053aee6cbf71e5b5209685c91d81c288b59c82fb47",
7
"blockNumber": "0x989689",
8
"contractAddress": null,
9
"cumulativeGasUsed": "0x63ee1",
10
"from": "0x7b5fc677cf27a807adf2ebcef72db3b935df6c0a",
11
"gasUsed": "0x63ee1",
12
"logs": [
13
{
14
"address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
15
"topics": [
16
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
17
"0x0000000000000000000000003d8a89a20aa73fba0f30d080e8120de9f9555724",
18
"0x000000000000000000000000170f88be2538b8aca98a87c1b186ce5f773cc028"
19
],
20
"data": "0x000000000000000000000000000000000000000000000000000000007dd34dc0",
21
"blockNumber": "0x989689",
22
"transactionHash": "0x19a2ba50b19ee8ed28fb902fe8cd0a64b0f7a4fe01281e70e2387fdd00ffd5f0",
23
"transactionIndex": "0x0",
24
"blockHash": "0x224c0c3153d6bf1f45f461053aee6cbf71e5b5209685c91d81c288b59c82fb47",
25
"logIndex": "0x0",
26
"removed": false
27
},
28
{
29
"address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
30
"topics": [
31
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
32
"0x0000000000000000000000003d8a89a20aa73fba0f30d080e8120de9f9555724",
33
"0x000000000000000000000000170f88be2538b8aca98a87c1b186ce5f773cc028"
34
],
35
"data": "0x000000000000000000000000000000000000000000000000000000007dd34dc0",
36
"blockNumber": "0x989689",
37
"transactionHash": "0x19a2ba50b19ee8ed28fb902fe8cd0a64b0f7a4fe01281e70e2387fdd00ffd5f0",
38
"transactionIndex": "0x0",
39
"blockHash": "0x224c0c3153d6bf1f45f461053aee6cbf71e5b5209685c91d81c288b59c82fb47",
40
"logIndex": "0x1",
41
"removed": false
42
},
43
{
44
"address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
45
"topics": [
46
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
47
"0x0000000000000000000000003d8a89a20aa73fba0f30d080e8120de9f9555724",
48
"0x000000000000000000000000170f88be2538b8aca98a87c1b186ce5f773cc028"
49
],
50
"data": "0x0000000000000000000000000000000000000000000000000000000000000000",
51
"blockNumber": "0x989689",
52
"transactionHash": "0x19a2ba50b19ee8ed28fb902fe8cd0a64b0f7a4fe01281e70e2387fdd00ffd5f0",
53
"transactionIndex": "0x0",
54
"blockHash": "0x224c0c3153d6bf1f45f461053aee6cbf71e5b5209685c91d81c288b59c82fb47",
55
"logIndex": "0x2",
56
"removed": false
57
},
58
{
59
"address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
60
"topics": [
61
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
62
"0x000000000000000000000000170f88be2538b8aca98a87c1b186ce5f773cc028",
63
"0x0000000000000000000000004d97dcd97ec945f40cf65f87097ace5ea0476045"
64
],
65
"data": "0x000000000000000000000000000000000000000000000000000000007dd34dc0",
66
"blockNumber": "0x989689",
67
"transactionHash": "0x19a2ba50b19ee8ed28fb902fe8cd0a64b0f7a4fe01281e70e2387fdd00ffd5f0",
68
"transactionIndex": "0x0",
69
"blockHash": "0x224c0c3153d6bf1f45f461053aee6cbf71e5b5209685c91d81c288b59c82fb47",
70
"logIndex": "0x3",
71
"removed": false
72
},
73
{
74
"address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
75
"topics": [
76
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
77
"0x000000000000000000000000170f88be2538b8aca98a87c1b186ce5f773cc028",
78
"0x0000000000000000000000004d97dcd97ec945f40cf65f87097ace5ea0476045"
79
],
80
"data": "0x000000000000000000000000000000000000000000000000000000007dd34dc0",
81
"blockNumber": "0x989689",
82
"transactionHash": "0x19a2ba50b19ee8ed28fb902fe8cd0a64b0f7a4fe01281e70e2387fdd00ffd5f0",
83
"transactionIndex": "0x0",
84
"blockHash": "0x224c0c3153d6bf1f45f461053aee6cbf71e5b5209685c91d81c288b59c82fb47",
85
"logIndex": "0x4",
86
"removed": false
87
},
88
{
89
"address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
90
"topics": [
91
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
92
"0x000000000000000000000000170f88be2538b8aca98a87c1b186ce5f773cc028",
93
"0x0000000000000000000000004d97dcd97ec945f40cf65f87097ace5ea0476045"
94
],
95
"data": "0x0000000000000000000000000000000000000000000000000000000000000000",
96
"blockNumber": "0x989689",
97
"transactionHash": "0x19a2ba50b19ee8ed28fb902fe8cd0a64b0f7a4fe01281e70e2387fdd00ffd5f0",
98
"transactionIndex": "0x0",
99
"blockHash": "0x224c0c3153d6bf1f45f461053aee6cbf71e5b5209685c91d81c288b59c82fb47",
100
"logIndex": "0x5",
101
"removed": false
102
},
103
{
104
"address": "0x4d97dcd97ec945f40cf65f87097ace5ea0476045",
105
"topics": [
106
"0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb",
107
"0x000000000000000000000000170f88be2538b8aca98a87c1b186ce5f773cc028",
108
"0x0000000000000000000000000000000000000000000000000000000000000000",
109
"0x000000000000000000000000170f88be2538b8aca98a87c1b186ce5f773cc028"
110
],
111
"data": "0x000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000239452b461f6d1a911080d87ceec9e2d988aa2533f71478dd340ea5b887011c808669b451aa838890f860952c26092f53231c81a4091fef087b29548325b0d7210000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000007dd34dc0000000000000000000000000000000000000000000000000000000007dd34dc0",
112
"blockNumber": "0x989689",
113
"transactionHash": "0x19a2ba50b19ee8ed28fb902fe8cd0a64b0f7a4fe01281e70e2387fdd00ffd5f0",
114
"transactionIndex": "0x0",
115
"blockHash": "0x224c0c3153d6bf1f45f461053aee6cbf71e5b5209685c91d81c288b59c82fb47",
116
"logIndex": "0x6",
117
"removed": false
118
},
119
{
120
"address": "0x4d97dcd97ec945f40cf65f87097ace5ea0476045",
121
"topics": [
122
"0x2e6bb91f8cbcda0c93623c54d0403a43514fabc40084ec96b6d5379a74786298",
123
"0x000000000000000000000000170f88be2538b8aca98a87c1b186ce5f773cc028",
124
"0x0000000000000000000000000000000000000000000000000000000000000000",
125
"0xb6efcb062820c882a6a7c4753c1160fe7d00e46608c5b945e7881f091f2316e5"
126
],
127
"data": "0x0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000007dd34dc0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002",
128
"blockNumber": "0x989689",
129
"transactionHash": "0x19a2ba50b19ee8ed28fb902fe8cd0a64b0f7a4fe01281e70e2387fdd00ffd5f0",
130
"transactionIndex": "0x0",
131
"blockHash": "0x224c0c3153d6bf1f45f461053aee6cbf71e5b5209685c91d81c288b59c82fb47",
132
"logIndex": "0x7",
133
"removed": false
134
},
135
{
136
"address": "0x170f88be2538b8aca98a87c1b186ce5f773cc028",
137
"topics": [
138
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
139
"0x0000000000000000000000000000000000000000000000000000000000000000",
140
"0x0000000000000000000000003d8a89a20aa73fba0f30d080e8120de9f9555724"
141
],
142
"data": "0x000000000000000000000000000000000000000000000000000000005b7dfb2c",
143
"blockNumber": "0x989689",
144
"transactionHash": "0x19a2ba50b19ee8ed28fb902fe8cd0a64b0f7a4fe01281e70e2387fdd00ffd5f0",
145
"transactionIndex": "0x0",
146
"blockHash": "0x224c0c3153d6bf1f45f461053aee6cbf71e5b5209685c91d81c288b59c82fb47",
147
"logIndex": "0x8",
148
"removed": false
149
},
150
{
151
"address": "0x4d97dcd97ec945f40cf65f87097ace5ea0476045",
152
"topics": [
153
"0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb",
154
"0x000000000000000000000000170f88be2538b8aca98a87c1b186ce5f773cc028",
155
"0x000000000000000000000000170f88be2538b8aca98a87c1b186ce5f773cc028",
156
"0x0000000000000000000000003d8a89a20aa73fba0f30d080e8120de9f9555724"
157
],
158
"data": "0x000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000239452b461f6d1a911080d87ceec9e2d988aa2533f71478dd340ea5b887011c808669b451aa838890f860952c26092f53231c81a4091fef087b29548325b0d72100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003b4c5777",
159
"blockNumber": "0x989689",
160
"transactionHash": "0x19a2ba50b19ee8ed28fb902fe8cd0a64b0f7a4fe01281e70e2387fdd00ffd5f0",
161
"transactionIndex": "0x0",
162
"blockHash": "0x224c0c3153d6bf1f45f461053aee6cbf71e5b5209685c91d81c288b59c82fb47",
163
"logIndex": "0x9",
164
"removed": false
165
},
166
{
167
"address": "0x170f88be2538b8aca98a87c1b186ce5f773cc028",
168
"topics": [
169
"0xec2dc3e5a3bb9aa0a1deb905d2bd23640d07f107e6ceb484024501aad964a951",
170
"0x0000000000000000000000003d8a89a20aa73fba0f30d080e8120de9f9555724"
171
],
172
"data": "0x0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000005b7dfb2c0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000007dd34dc0000000000000000000000000000000000000000000000000000000004286f649",
173
"blockNumber": "0x989689",
174
"transactionHash": "0x19a2ba50b19ee8ed28fb902fe8cd0a64b0f7a4fe01281e70e2387fdd00ffd5f0",
175
"transactionIndex": "0x0",
176
"blockHash": "0x224c0c3153d6bf1f45f461053aee6cbf71e5b5209685c91d81c288b59c82fb47",
177
"logIndex": "0xa",
178
"removed": false
179
},
180
{
181
"address": "0xd216153c06e857cd7f72665e0af1d7d82172f494",
182
"topics": [
183
"0xab74390d395916d9e0006298d47938a5def5d367054dcca78fa6ec84381f3f22",
184
"0x0000000000000000000000007b5fc677cf27a807adf2ebcef72db3b935df6c0a",
185
"0x000000000000000000000000671da88c76061a1f0683127a1c6e1dd1a79db621",
186
"0x000000000000000000000000ab45c5a4b0c941a2f231c04c3f49182e1a254052"
187
],
188
"data": "0x34ee97910000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006d895ea20aa80",
189
"blockNumber": "0x989689",
190
"transactionHash": "0x19a2ba50b19ee8ed28fb902fe8cd0a64b0f7a4fe01281e70e2387fdd00ffd5f0",
191
"transactionIndex": "0x0",
192
"blockHash": "0x224c0c3153d6bf1f45f461053aee6cbf71e5b5209685c91d81c288b59c82fb47",
193
"logIndex": "0xb",
194
"removed": false
195
},
196
{
197
"address": "0x0000000000000000000000000000000000001010",
198
"topics": [
199
"0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63",
200
"0x0000000000000000000000000000000000000000000000000000000000001010",
201
"0x0000000000000000000000007b5fc677cf27a807adf2ebcef72db3b935df6c0a",
202
"0x000000000000000000000000c6869257205e20c2a43cb31345db534aecb49f6e"
203
],
204
"data": "0x0000000000000000000000000000000000000000000000000003a2ab85ead90000000000000000000000000000000000000000000000000203f61a3a8191a0aa0000000000000000000000000000000000000000000000004ea18c6904e776cc00000000000000000000000000000000000000000000000203f2778efba6c7aa0000000000000000000000000000000000000000000000004ea52f148ad24fcc",
205
"blockNumber": "0x989689",
206
"transactionHash": "0x19a2ba50b19ee8ed28fb902fe8cd0a64b0f7a4fe01281e70e2387fdd00ffd5f0",
207
"transactionIndex": "0x0",
208
"blockHash": "0x224c0c3153d6bf1f45f461053aee6cbf71e5b5209685c91d81c288b59c82fb47",
209
"logIndex": "0xc",
210
"removed": false
211
}
212
],
213
"logsBloom": "0x0400000002000000000100000000000000000000000000001000000000104000000000000000000001000020200000001000800000000000001008014020004000000000001000000000000c000200840000000000000000202100000000000000000000020000000001000000000800000000000800000980100010000000002001000000000000000000000000000000100000020000000000000000000000220000000400000000000000008001000008000000000020000000000000004000000002000000000001000000000000000404000600000000100000100020000010008000002000040000000000000010000000000000008000100002100000",
214
"status": "0x1",
215
"to": "0xd216153c06e857cd7f72665e0af1d7d82172f494",
216
"transactionHash": "0x19a2ba50b19ee8ed28fb902fe8cd0a64b0f7a4fe01281e70e2387fdd00ffd5f0",
217
"transactionIndex": "0x0"
218
}
219
]
220
}
Copied!

​

Last modified 18d ago