I am aware of the debug_traceTransaction function. On Etherscan.io there is an option to view transaction, called Geth Debug Trace_2, which produces output in a format that I need. The option is here:

enter image description here

And the output looks like this

    "type": "CALL",
    "from": "0x5c0c754e08d545e219e0dc8c440f934dc12bac7f",
    "to": "0x4fa2cc6ad3f94e0f99111943985c24d7d3f188cf",
    "value": "0x2386f26fc10000",
    "gas": "0x12e48",
    "gasUsed": "0x1e48",
    "input": "0x312e5a61000000000000000000000000fe89009eda90321fd48f9c6b97bcf4e86a79f71c",
    "output": "0x",
    "time": "3.0075ms",
    "calls": [
        "type": "CALL",
        "from": "0x4fa2cc6ad3f94e0f99111943985c24d7d3f188cf",
        "to": "0xfe89009eda90321fd48f9c6b97bcf4e86a79f71c",
        "value": "0x2386f26fc10000",
        "input": "0x"

My question is: can I obtain data from geth in a same format or does Etherscan calculate that data based on debug_traceTransaction ?

1 Answer 1


I found it.

According to https://github.com/ethereum/go-ethereum/issues/16408 I had to pass {"tracer":"callTracer"} to debug_traceTransaction

  • 1
    hi, are you still using this trace today? or did you find something else?
    – Or Bachar
    Sep 28, 2022 at 8:32
  • 1
    hi, sorry but I am longer working at the company I needed this for
    – netaholic
    Sep 29, 2022 at 9:27

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.