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 ?


I found it.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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