InfrastructureLetter: G

What is Gas Fee?

Definitive Definition

A gas fee is the transaction fee paid by a crypto user to network validators or miners to compensate them for the computational power required to process, validate, and execute transactions or smart contracts on a blockchain network like Ethereum.

In-Depth Architectural & Economic Analysis

Gas is a unit that measures the computational effort needed to execute specific operations on the Ethereum Virtual Machine (EVM). Gas fees prevent spam by making denial-of-service attacks financially expensive while dynamically pricing scarce block space during periods of high user demand.

Core Characteristics & Mechanism

  • Priced in gwei (one-billionth of an ETH) on Ethereum.
  • Composed of a base fee (burned by EIP-1559) and a priority fee (tip to validators).
  • Simple transfers consume 21,000 gas units; complex smart contracts require substantially more.
  • Dynamic pricing fluctuates based on network congestion.
Practical Application Scenario:

Swapping tokens on Uniswap when network congestion is high might consume 150,000 gas units, resulting in a higher gas fee than a simple wallet-to-wallet transfer.