trace_transaction
Returns all traces of given transaction.

Parameters

  1. 1.
    Hash - Transaction hash
1
params: ["0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3"]
Copied!

Returns

  • Array - Traces of given transaction

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_transaction","params":["0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3"],"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_transaction",
7
"params":["0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3"],
8
"id":1
9
}
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"result": [
4
{
5
"action": {
6
"callType": "call",
7
"from": "0x83806d539d4ea1c140489a06660319c9a303f874",
8
"gas": "0x1a1f8",
9
"input": "0x",
10
"to": "0x1c39ba39e4735cb65978d4db400ddd70a72dc750",
11
"value": "0x7a16c911b4d00000"
12
},
13
"blockHash": "0x7eb25504e4c202cf3d62fd585d3e238f592c780cca82dacb2ed3cb5b38883add",
14
"blockNumber": 3068185,
15
"result": {
16
"gasUsed": "0x2982",
17
"output": "0x"
18
},
19
"subtraces": 2,
20
"traceAddress": [],
21
"transactionHash": "0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3",
22
"transactionPosition": 2,
23
"type": "call"
24
},
25
{
26
"action": {
27
"callType": "call",
28
"from": "0x1c39ba39e4735cb65978d4db400ddd70a72dc750",
29
"gas": "0x13e99",
30
"input": "0x16c72721",
31
"to": "0x2bd2326c993dfaef84f696526064ff22eba5b362",
32
"value": "0x0"
33
},
34
"blockHash": "0x7eb25504e4c202cf3d62fd585d3e238f592c780cca82dacb2ed3cb5b38883add",
35
"blockNumber": 3068185,
36
"result": {
37
"gasUsed": "0x183",
38
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
39
},
40
"subtraces": 0,
41
"traceAddress": [
42
0
43
],
44
"transactionHash": "0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3",
45
"transactionPosition": 2,
46
"type": "call"
47
},
48
{
49
"action": {
50
"callType": "call",
51
"from": "0x1c39ba39e4735cb65978d4db400ddd70a72dc750",
52
"gas": "0x8fc",
53
"input": "0x",
54
"to": "0x70faa28a6b8d6829a4b1e649d26ec9a2a39ba413",
55
"value": "0x7a16c911b4d00000"
56
},
57
"blockHash": "0x7eb25504e4c202cf3d62fd585d3e238f592c780cca82dacb2ed3cb5b38883add",
58
"blockNumber": 3068185,
59
"result": {
60
"gasUsed": "0x0",
61
"output": "0x"
62
},
63
"subtraces": 0,
64
"traceAddress": [
65
1
66
],
67
"transactionHash": "0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3",
68
"transactionPosition": 2,
69
"type": "call"
70
}
71
],
72
"id": 0
73
}
Copied!