Overview
The gas limit is the maximum amount of gas a block may contain or a transaction may consume. It bounds the computation in each block and per transaction. It protects the network from runaway computation.
How It Works
A block's gas limit caps the total gas of its transactions, while a transaction's gas limit caps what that transaction may use. Unused gas is refunded. After EIP-1559, blocks have a target size with variable limits.
Why It Matters
Gas limits control block capacity and network throughput. They prevent denial-of-service via excessive computation. Understanding gas limits is essential for developers and users estimating costs.
Related Concepts
The Gas Limit relates to Gas Fees, Blocks, and EIP-1559. It determines transaction cost and block capacity.