2

When a contract causes an addresses code on the EVM, a stack depth counter is kept. I need this stack information as I am producing a EVM execution visualiser. This stack depth changes when a function is called.

I am currently getting that information by running debug.traceTransaction in my local geth instance and parsing the returned JSON. However, I would like to know this information BEFORE I get the returned trace JSON.

Does anyone know an easier way (an API)?

Thanks

2
  • (+1) Hi there - did you solve this problem in the end? Commented Aug 22, 2017 at 15:55
  • 1
    I did not. AFAIK debug.traceTransaction is the only way to it on live contracts. There are call stack depth tracers available for contracts if you have the Solidity code available to you: github.com/pipermerriam/ethereum-stack-depth-lib
    – Gawnie
    Commented Aug 23, 2017 at 19:30

0

Your Answer

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

Browse other questions tagged or ask your own question.