Introduction to Gas and Transaction Fees
How Ethereum prices computation: gas and gas limits, EIP-1559 base and priority fees, calculating what a transaction costs, the gas costs of common EVM operations, and estimating and reducing the gas a contract uses.
- 4 lessons
- Module quiz
Every operation on Ethereum costs gas, paid in ether by the sender. This module explains what gas measures, how EIP-1559 fees are calculated, what common EVM operations cost, and how to estimate and reduce the gas a contract uses.
What the exam expects
The exam expects you to calculate fees from gas used, base fee and priority fee, convert between wei, gwei and ether, explain out-of-gas behaviour, identify expensive operations and choose safe optimisations.
How this module is organized
Gas Fundamentals covers gas and gas limits. Calculating Transaction Fees covers EIP-1559. Gas Costs of EVM Operations covers intrinsic, storage and deployment costs with measured examples. Estimating and Optimising Gas covers tools and techniques.