ots
ots_traceTransaction
Returns a simplified trace of all call frames within a transaction, similar to debug_traceTransaction but with a simpler output format designed for Otterscan.
Returns a simplified trace of all call frames within a transaction, similar to debug_traceTransaction but with a simpler output format designed for Otterscan.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Transaction hash. |
Returns
Array of trace entry objects:
| Field | Type | Description |
|---|---|---|
type | string | Call type: CALL, STATICCALL, DELEGATECALL, CREATE, CREATE2. |
depth | number | Call depth (0 = top level). |
from | string | Caller address. |
to | string | Callee address. |
value | string | Value transferred (hex). |
input | string | Call input data (hex). |
output | string | Call output data (hex). |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"ots_traceTransaction","params":["0x5a9e14d0806ab9e1d031755dfcab5e808da0b4c7933bc9c055f70614cc11903d"],"id":1}'
TRY IT
Notes
- Simpler and faster than
debug_traceTransactionfor most UI use cases. - Used by Otterscan to render the transaction call tree.
