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.

1 Answer 1


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
    Commented Aug 1, 2016 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
    Commented Aug 2, 2016 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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