trace_block
Returns traces created at given block.

Parameters

  1. 1.
    Quantity or Tag - Integer of a block number, or the string 'earliest', 'latest' or 'pending'.
1
params: [
2
"0x2ed119" // 3068185
3
]
Copied!

Returns

  • Array - Block traces.

Example

Request

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

Response

1
{
2
"jsonrpc": "2.0",
3
"result": [
4
{
5
"action": {
6
"callType": "call",
7
"from": "0xaa7b131dc60b80d3cf5e59b5a21a666aa039c951",
8
"gas": "0x0",
9
"input": "0x",
10
"to": "0xd40aba8166a212d6892125f079c33e6f5ca19814",
11
"value": "0x4768d7effc3fbe"
12
},
13
"blockHash": "0x7eb25504e4c202cf3d62fd585d3e238f592c780cca82dacb2ed3cb5b38883add",
14
"blockNumber": 3068185,
15
"result": {
16
"gasUsed": "0x0",
17
"output": "0x"
18
},
19
"subtraces": 0,
20
"traceAddress": [],
21
"transactionHash": "0x07da28d752aba3b9dd7060005e554719c6205c8a3aea358599fc9b245c52f1f6",
22
"transactionPosition": 0,
23
"type": "call"
24
},
25
{
26
"action": {
27
"callType": "call",
28
"from": "0x4f11ba23bb526c0486d83c6a8f18f632f3fc172a",
29
"gas": "0x0",
30
"input": "0x",
31
"to": "0x7ed1e469fcb3ee19c0366d829e291451be638e59",
32
"value": "0x446cde325fbfbe"
33
},
34
"blockHash": "0x7eb25504e4c202cf3d62fd585d3e238f592c780cca82dacb2ed3cb5b38883add",
35
"blockNumber": 3068185,
36
"result": {
37
"gasUsed": "0x0",
38
"output": "0x"
39
},
40
"subtraces": 0,
41
"traceAddress": [],
42
"transactionHash": "0x056f11efb5da4ff7cf8523cfcef08393e5dd2ff3ab3223e4324426d285d7ae92",
43
"transactionPosition": 1,
44
"type": "call"
45
},
46
{
47
...
48
}
49
],
50
"id": 0
51
}
Copied!