Gas Limit and Gas Price (2024)

When you send an Ethereum transaction, you specify your gas price, typically denominated in Gwei, and a gas limit. The gas price you set determines how much you’re willing to pay per unit of gas. The gas limit determines how many units of gas you’re willing to pay for. You can think of your gas limit like a budget you set for the minerA miner is an individual or organization that "mines" crypto... More processing your transaction.

Gas markets determine if and when transactions will get confirmed. If a user sets their gas price too low, their transaction may get stuck. If a user sets their gas limit too low, their transaction cannot be executed because it runs out of gas.

Most of the time, a user’s walletA wallet is a device (a hardware device, a program, or servi... More automatically fills in the gas limit for them. Simple transfers typically require a gas limit of 21,000 units, whereas complex interactions with smart contractsA smart contract is a computer protocol intended to digitall... More can require a gas limit of 100,000 or even 200,000. A general rule of thumb is that the more complex the transaction, the higher the gas limit will need to be. A user should not try to save gas by lowering their limit because it won’t change the amount of resources needed to process the transaction. Their transaction will just run out of gas and they’ll have to resubmit it, costing them more in gas fees.

Note: These are non-technical definitions meant for a general audience and should not be used as legal definition

Gas Limit and Gas Price (2024)
Top Articles
Latest Posts
Article information

Author: Rueben Jacobs

Last Updated:

Views: 5731

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Rueben Jacobs

Birthday: 1999-03-14

Address: 951 Caterina Walk, Schambergerside, CA 67667-0896

Phone: +6881806848632

Job: Internal Education Planner

Hobby: Candle making, Cabaret, Poi, Gambling, Rock climbing, Wood carving, Computer programming

Introduction: My name is Rueben Jacobs, I am a cooperative, beautiful, kind, comfortable, glamorous, open, magnificent person who loves writing and wants to share my knowledge and understanding with you.