Generating basic traces
To generate a raw EVM opcode trace, the Parallax client provides a few RPC API endpoints. The most commonly used is debug_traceTransaction. In its simplest form,traceTransaction
accepts a transaction hash as its only argument. It then traces the transaction, aggregates all the generated data and returns it as a large JSON object. A sample invocation from the Parallax client console would be:
--http
command and the debug
API namespace must be exposed using --http.api=debug
.
eth.getBlock('latest')
then passing a transaction hash from the returned block to debug.traceTransaction()
) or from a block explorer.
It is also possible to configure the trace by passing Boolean (true/false) values for four parameters that tweak the verbosity of the trace. By default, the EVM memory and Return data are not reported but the EVM stack and EVM storage are. To report the maximum amount of data: