trace
trace_get
Returns a specific trace within a transaction by its index path.
Returns a specific trace within a transaction, identified by its trace address (index path in the call tree).
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Transaction hash (32-byte hex). |
| 2 | array | Trace address — array of hex index strings indicating the path in the call tree (e.g., ["0x0"] for the first sub-call). |
Returns
A single trace object with action, result, subtraces, traceAddress, and type.
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "trace_get",
"params": [
"0x79fd4efffbce67981032ca39b205358209a785823a0a2f64eaca3e9b5c425a39",
["0x0"]
],
"id": 1
}'
TRY IT
Notes
- Use
trace_transactionfirst to discover available trace addresses, thentrace_getto fetch specific ones. - The root trace (the transaction itself) has an empty trace address
[].
