I have made several transactions and would like to test/trace them without waiting for the miner to generate a block. And without even sending them to the network without testing. How can this be do in geth? I would like to test the transactions in the current head, before sending it to the network.
1 Answer
Have a look into debug_traceCall, which is a combination of debug_
and eth_call
.
It also supports built-in tracers, including callTracer
that you mention.
debug.traceTransaction("0xххххх", {tracer: 'callTracer', tracerConfig:{withLog: true}})