I am new on smart contract development and trying to create my first smart contract on Remix IDE. As you can see below, there is 3 different cost types:
- Gas
- Transaction cost
- Execution cost
So,
- May you explain me the differences between them, please?
- Which is the "final gas amount" should I pay?
- Why "gas" is greater than other twos?
gas 7824262 gas transaction cost 6803706 gas execution cost 6803706 gas
Transaction cost and execution cost are equal...
Thank you for helps.
For example lets say we will call the transferBalance() function from JavaScript, will we pay the Transaction Cost(6803706) or Gas (7824262)?
And one more question, you just said:
Transaction cost is = Gas Units Used * Price per Gas Unithow can I learn the current Ethereum "price per gas unit" cost to calculate this formula correctly?Thanks for your answers!
– daybreak Jul 07 '22 at 16:52