Gas Limit

Protocol

Maximum gas a transaction is allowed to consume.

The gas limit caps how much work a transaction can do. If execution runs out of gas, it reverts and you still pay for the work done. Start with the wallet estimate and add a buffer for safety.

Frequently asked questions

  • How do I choose a gas limit?
    Use the wallet estimate and add a buffer. Complex calls can vary with on chain state, so avoid setting it too tight.
  • What happens if I set it too low?
    The transaction may run out of gas and revert, but you still pay for the gas used.
  • Can I set it too high?
    A higher limit does not increase cost if not used. You pay only for gas consumed.