3

Is it possible and, if yes, does a solidity editor exist that estimates gas per line of code while typing? I haven't found anything like that as yet. Either it is difficult or simply nobody has bothered to build such a tool yet.

1
  • 1
    you are going to want to test your code anyways, and you can get gas costs when doing that. Which is going to vary by input anyways. It takes minutes to get up and running with truffle to write unit tests...
    – Paul S
    Commented Sep 8, 2017 at 1:56

1 Answer 1

2

I don't think it exists for solidity because you can write solidity over multiple lines and its not an issue. The gas fees come once its compiled. remix has gas estimates for each function and the actual gas fee of each operation is outlined in the yellow paper: http://gavwood.com/paper.pdf.

1
  • remix does the job!
    – Davide C
    Commented Jan 28, 2018 at 23:49

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.