trace
trace_transaction
Returns all traces for a specific transaction.
Returns all traces (internal calls, creates, suicides) produced by a specific transaction.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Transaction hash (32-byte hex). |
Returns
An array of trace objects, each containing 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_transaction",
"params": ["0x79fd4efffbce67981032ca39b205358209a785823a0a2f64eaca3e9b5c425a39"],
"id": 1
}'
TRY IT
Notes
- Returns the same trace format as
trace_blockbut filtered to a single transaction. - More efficient than
trace_blockwhen you only need traces for one transaction. - Each trace has a
traceAddressarray indicating its position in the call tree.
