Appearance
Trace (trace_*)
The OpenEthereum (Parity) trace format of the trace_* methods.
A trace is a flat list. Each item is one call, contract creation or self-destruct. traceAddress gives the position of the item in the call tree.
Fields
| Field | Type | Meaning |
|---|---|---|
type | string | call, create or suicide (self-destruct). |
action | object | What happened. A call has from, to, callType (call, delegatecall, staticcall, callcode), gas, input and value. A create has from, gas, init, value and creationMethod. A suicide has address, balance and refundAddress. |
result | object or null | A call: gasUsed and output. A create: address, code and gasUsed. null when the call failed. |
error | string | Only when the call failed, for example Reverted or Out of gas. |
subtraces | number | The number of direct inner calls. |
traceAddress | list of numbers | The path in the call tree. [] is the top call. [0, 1] is the second inner call of the first inner call. |
blockHash | 32-byte hash | The block (block and transaction traces only). |
blockNumber | number (not hex) | The block number (block and transaction traces only). |
transactionHash | 32-byte hash | The transaction (block and transaction traces only). |
transactionPosition | number (not hex) | The position of the transaction in the block. |
Notes
- The replay methods (
trace_call,trace_replayTransactionand others) take a list of trace types:trace(this list),vmTrace(each EVM step) andstateDiff(the changed accounts). Another name gives -32602. - A replay result has
output,trace,vmTraceandstateDiff. A type that the request did not ask for is an empty list ornull.
Used by
trace_block, trace_call, trace_callMany, trace_filter, trace_get, trace_rawTransaction, trace_replayBlockTransactions, trace_replayTransaction, trace_transaction.