trace_rawTransaction
Traces a call to eth_sendRawTransaction without making the call, returning the traces

Parameters

  1. 1.
    Data - Raw transaction data.
  2. 2.
    Array - Type of trace, one or more of: "vmTrace", "trace", "stateDiff".
1
params: [
2
"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",
3
["trace"]
4
]
Copied!

Returns

  • Object - 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_rawTransaction","params":["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",["trace"]],"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_rawTransaction",
7
"params":["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",["trace"]],
8
"id":1
9
}
Copied!

Response

1
{
2
"id": 1,
3
"jsonrpc": "2.0",
4
"result": {
5
"output": "0x",
6
"stateDiff": null,
7
"trace": [{
8
"action": { ... },
9
"result": {
10
"gasUsed": "0x0",
11
"output": "0x"
12
},
13
"subtraces": 0,
14
"traceAddress": [],
15
"type": "call"
16
}],
17
"vmTrace": null
18
}
19
}
Copied!