gas-fees

The fee required to verify and process a transaction on a blockchain network.

Gas fees are payments made by users to compensate for the computing energy required to process and validate transactions on the blockchain. Just as a car needs gas to run, smart contracts need 'gas' to execute code. The distinct 'Gas Limit' determines the maximum work allowed, while 'Gas Price' determines the cost per unit of work.

        graph LR
  Center["gas-fees"]:::main
  Rel_block_explorer["block-explorer"]:::related -.-> Center
  click Rel_block_explorer "/terms/block-explorer"
  Rel_gas_price["gas-price"]:::related -.-> Center
  click Rel_gas_price "/terms/gas-price"
  Rel_mev["mev"]:::related -.-> Center
  click Rel_mev "/terms/mev"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧠 Knowledge Check

1 / 1

🧒 Explain Like I'm 5

Think of the [blockchain](/en/terms/blockchain) like a busy toll highway. To drive your car ([transaction](/en/terms/transaction)) from A to B, you have to pay a toll. If the road is empty, the toll is cheap. If it's rush hour and everyone wants to drive, the toll goes up, and you have to bid higher to get on the road first.

🤓 Expert Deep Dive

In Ethereum (EIP-1559), gas fees consist of a Base Fee (burned) and a Priority Fee (tip to miner). This dynamic creates a deflationary pressure on ETH when usage is high. Layer 2 solutions aim to reduce these fees by rolling up many transactions into a single L1 proof.

📚 Sources