I understand the difference between transaction costs and execution costs, but I don't understand two things:
- What does the "gas" readout in Remix refer to?
- How do I create an estimate of how much doing something will cost?
When I run a transaction in Remix, I get the following output when I click the down arrow for more details on the transaction:
I thought that "gas" would just be a sum of transaction cost and execution cost, but that's obviously not the case. So what does this gas line mean?
In addition, using this information, how would I compute how much money (in dollars) it would take to have completed this transaction?
I know I can see how much gas costs here. (Currently at 114.43 Gwei.) Then, since there is 1 billion Gwei in an Ether, and the price of an Ether can be looked up here, I can figure out how much in dollars each gas costs.
But what numbers do I multiply by this cost to get the total cost of running something? Should I do (gas + transaction cost + execution cost) * gas price? Or just (transaction cost + execution cost) * gas price? Or does only the execution cost matter?
(Also note that I have read through the answers to this question as well, but they don't answer my question (1) and aren't very clear about my question (2). Thus, I have asked a new question.)
