[Ethereum] gas price limit

gas-price

Every transaction on the Ethereum blockchain must consume less gas than the block gas limit, which can fluctuate depending on the weighted average sentiment of miners. To help incentivize inclusion of transactions when the gas limit is low, relative to the number of gas being consumed, a higher gas price can be set.

Is there an upper limit on gas price? Put another way, is there an upper bound on an individual transaction's transaction fee which is equal to quantity gas price x gas consumed? Or is the limit simply the amount of ether that the transaction's sender is willing to spend and has available?

(I came up empty-handed after a quick scan of the geth source code and couldn't find the answer on the web)

Best Answer

Transaction calls have a gasLimit and gasPrice attribute.

The block itself has gasLimit, but does not have any check on gas price. This is left to the tx sender to specify.

Now, this doesn't mean the miners will not discard tx's with low gasPrice.

http://ethgasstation.info/ This shows average gas price over time and many other cool metrics.

The maximum gasPrice is ultimately decided by the funds of the tx sender. If the gasPrice (the amount you are willing to spend for 1 gas worth of computation) is greater than the accounts balance in wei the tx will through.

So, max GasPrice = account.balance

Related Topic