[Ethereum] Where does the consumed ether/gas go


I'm a bit new to ethereum and I'm finding it a bit difficult to understand how gas and Ether relate.

So every call we do to a smart contract costs gas. Where does the gas that the user pay goes to? Does it evaporate, or is it credited to some other account?

Best Answer

Gas is paid for out of the sender's ether balance, at the rate specified by the chosen gas cost. Any unused gas is refunded, and consumed gas is credited to the miner who mined the transaction, again at the rate specified by the gas cost.

Related Topic