Gas limit
The gas limit is the maximum amount of gas a user authorizes an Ethereum transaction to consume during execution.
✦ Key Insight
Setting the limit too low can cause an execution to fail, while understanding it helps users distinguish computational limits from fee pricing.
✕ Common Misconceptions
Gas limit and gas price are different concepts. The limit controls maximum computational work, not the market price per unit of gas.
Detailed Explanation
In Practice
Dig Deeper
Gas
Gas is a unit or mechanism used on some smart-contract networks to measure and price the computational work required for transactions.
Mempool
A mempool is a node's temporary pool of valid, unconfirmed transactions waiting to be included in a block.
Network Fee
A network fee is the amount paid to have a blockchain transaction processed and included according to that network's fee rules.
Revert
A revert occurs when smart-contract execution stops and the attempted state changes from that execution are rolled back.
Nonce
A transaction nonce on Ethereum is a sequential counter used to order transactions sent from an account and prevent the same transaction sequence from being reused.
