From what I understand, as a miner, I can set whatever gas price I want. So for my test private ethereum network I set, in geth, for my miner a gas price of zero.

I tried doing a transaction from an account with a balance of 0 but I got an error that the account balance is too low.

So why does it fail? Is the gas price somehow adjusted automatically by geth.

up vote 2 down vote accepted

See chapter 6.2 of the yellow paper. In short, the gas value has to fulfill a mathematical relationship that implies a value greater than 0.

  • Then why am I allowed to set price to 0 and not get an error ? And if in the back the gas price is not set to zero then to what value is it set ? – dragosb Aug 1 '16 at 16:24
  • You can set the price to 0 and not get an error because the relationship does not have to hold yet. It's only when you make the transaction that the it has to hold. – Sebi Aug 2 '16 at 13:19

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.