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