Quartz Protocol Desk

Ethereum & Layer 2

What Ethereum Gas Pays For

Gas meters the resources a transaction consumes. The gas price converts that amount into a fee paid in ether.

Two units to keep separate

Gas is a unit of work. The fee per unit is priced in ETH, commonly displayed in gwei. A wallet can show a high maximum fee while the actual amount paid ends up lower, because the transaction uses less than the maximum it was authorized to spend.

Why a contract call costs more

A simple transfer and a contract call make different demands on the execution environment. Reading the amount of tokens moved does not reveal the computation involved. Operations such as storage updates can also vary across calls to the same contract.

An illustrative calculation

At an effective price of 10 gwei per gas, using 21,000 gas costs 210,000 gwei, or 0.00021 ETH. This is a unit example. A live estimate needs the transaction details and current network conditions.

Sources