Skip to content

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 ​

FieldTypeMeaning
typestringcall, create or suicide (self-destruct).
actionobjectWhat 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.
resultobject or nullA call: gasUsed and output. A create: address, code and gasUsed. null when the call failed.
errorstringOnly when the call failed, for example Reverted or Out of gas.
subtracesnumberThe number of direct inner calls.
traceAddresslist of numbersThe path in the call tree. [] is the top call. [0, 1] is the second inner call of the first inner call.
blockHash32-byte hashThe block (block and transaction traces only).
blockNumbernumber (not hex)The block number (block and transaction traces only).
transactionHash32-byte hashThe transaction (block and transaction traces only).
transactionPositionnumber (not hex)The position of the transaction in the block.

Notes ​

  • The replay methods (trace_call, trace_replayTransaction and others) take a list of trace types: trace (this list), vmTrace (each EVM step) and stateDiff (the changed accounts). Another name gives -32602.
  • A replay result has output, trace, vmTrace and stateDiff. A type that the request did not ask for is an empty list or null.

Used by ​

trace_block, trace_call, trace_callMany, trace_filter, trace_get, trace_rawTransaction, trace_replayBlockTransactions, trace_replayTransaction, trace_transaction.