2

Is there a simple tool for this or do I have to calculate it myself?

ShawkHawk
  • 85
  • 4

1 Answers1

2

From How much does it cost to use a contract?

Total ETH cost = gasUsed * gasPrice

Multiply the result by the USD price per ETH.

browser-solidity can help provide the gasUsed, and you have control over the gasPrice. The USD price fluctuates, and it's not much multiplication so there might not yet be a tool that multiplies all 3 values.

eth
  • 85,679
  • 53
  • 285
  • 406
  • It may not always be so easy to test everything in browser solidity - another option is to run on testnet with excessive amounts of Gas and use estnet.etherscan.io to find out how much you actually used... – Dave Appleton Dec 24 '16 at 17:14