GlossaryIntermediate
Gas Limit
The maximum amount of computational work a transaction is allowed to use.
A gas limit is the maximum amount of computational work, measured in gas units, that a sender is willing to allow a transaction to consume before it's rejected.
If a transaction requires more computation than its gas limit allows, it fails, though any gas already consumed up to that point is typically still spent as a fee.
Examples
- A simple transfer generally requires a much lower gas limit than a complex smart contract interaction.
- Setting a gas limit too low can cause a transaction to fail without fully completing.