What Is the Difference between ‘Gas Limit’ and ‘Gas Used’?

The Gas Limit is the maximum amount of computational effort (Gas) a user is willing to pay for a transaction. It is set by the sender to prevent an infinite loop in a smart contract from draining their funds.

Gas Used is the actual amount of Gas consumed by the network to execute the transaction. If Gas Used exceeds the Gas Limit, the transaction fails, but the fee up to the limit is still consumed.

Explain the Difference between “Gas” and “Gas Limit” in a Transaction
How Do Options Greeks, Specifically Gamma, Influence the Maximum Quote Size a Market Maker Is Willing to Offer?
What Is the Role of the ‘Max Fee per Gas’ Setting for a User?
What Is the Purpose of the ‘Gas Limit’ Parameter When Submitting a Smart Contract Transaction?
What Is a “Gas Limit” in the Context of Transaction Fees on a Network like Ethereum?
What Is a “Gas Limit” and Why Is It Important for Contract Execution?
How Is the Gas Fee Calculated on a Turing-Complete Blockchain like Ethereum?
What Is the Difference between ‘Gas Limit’ and ‘Gas Price’ in Ethereum?

Glossar