0

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.

3
  • 1
    Did you consider using eth_call?
    – Ake
    Commented Oct 13, 2023 at 17:01
  • Ideally I would like to see logs and traces.debug.traceTransaction("0xххххх", {tracer: 'callTracer', tracerConfig:{withLog: true}})
    – SkyN
    Commented Oct 14, 2023 at 6:21
  • 1
    Oh I see, then you best bet is likely debug_traceCall.
    – Ake
    Commented Oct 15, 2023 at 7:13

1 Answer 1

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.