In this module you will learn how gas measures computation, how transaction fees are calculated and how the block gas limit constrains a block.
Topics covered
– Transaction Gas
– gasPrice and gasLimit
– Turing Completeness
– Gas Accounting
– Transaction Fees
– Gas Cost vs Gas Price
– Block Gas Limit
– Who Sets the Limit
Key takeaways
– Gas is the fuel of Ethereum: a separate unit that prices computation and storage.
– gasPrice is what you pay per unit of gas; gasLimit is the most gas you will buy.
– A simple EOA-to-EOA payment costs a fixed 21,000 gas.
– Gas solves the halting problem: the EVM is quasi-Turing-complete.
– Transaction fee = gas used × gas price; unused gas is refunded, failed transactions still pay.
– The block gas limit caps the total gas of all transactions in a block.
Open the PDF below to go through the slides.