12 - Gas Mechanism
Ether needs to be sent along with a transaction and it needs to be explicitly earmarked for the purchase of gas, along with an acceptable gas price. Just like at the pump, the price of gas is not fixed.
Gas is purchased for the transaction, the computation is executed, and any unused gas is refunded back to the sender of the transaction.
- Transaction -> Gas
- Price -> Ether
- Gas Price -> Not Fixed
- Varies -> Demand
- Gas -> Purchase
- Transaction -> Execute
- Gas -> Consumed
- Remaining -> Refunded