What is the best way to check the cost (gas) price for any given function call in a smart contract, before deployment to mainnet?



You have a few choices:

  • Use Remix IDE, it allows you to simulate a chain
  • Use a test network like ropsten or rinkeby. They are like main network, but ether is free and it is used, as their names state it, as test networks.
| improve this answer | |
  • Thanks, I use Remix and Rinkeby already. Was just wondering if there were any better solution ... – Dyvel Sep 25 '18 at 12:57

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.