2

I've deployed the following verified smart-contract to ropsten:

contract Incrementer {
    uint iteration;

    function Incrementer() {
            iteration = 0;
    }

    function increment(uint count) {
        iteration += count;
    }

    function getIteration() constant returns (uint) {
        return iteration;
    }

}

What I'd like to do is call it, such that it will execute, and then I want to observe the resulting series of operations that take place in the EVM, i.e. what are the opcodes that are executed, and in what sequence. What is the best way to achieve that?

  • 1
    with etherscan.io you can watch it, they have a na api maybe this help you – Gawey Aug 4 '17 at 7:09
  • Hi @Gawey - could you add some more details about how this can be done in a proper answer? Might help others wanting to know the same thing :-) – Richard Horrocks Aug 25 '17 at 18:45
  • 1
    @s.matthew.english What you are looking for is debug.traceTransaction available Geth. This function takes a transaction hash and returns the step by step execution trace from the EVM. – Gawnie Sep 4 '17 at 11:48

Your Answer

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

Browse other questions tagged or ask your own question.