eth_gasPrice returns 0

When we test our application on ropsten, sometimes the transaction will fail with “transaction underpriced” which were caused by eth_gasPrice returned 0.

Here is a manually test results via curl:

> curl -X POST --data '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":9}' "https://ropsten.infura.io/v3/<PROJECT-ID>"
{"jsonrpc":"2.0","id":9,"result":"0x0"}

Never had this issue till today and it happened perioridly for a while and back to normal again, then happened again.

Some timestamps of occourances (in UTC):
2020/FEB/11:

  • around 03:39
  • 07:31 until 07:45
  • 09:14 until 09:23

Is this an expected behaviour that could happen constantly? Or is there anything wrong with the ropsten network?

Thanks

I’ve started up a script to try to reproduce this and so far haven’t seen the issue you have reported. It certainly wouldn’t be the expected behaviour to return a gas price of 0. It is true though that on the test networks there is unexpected behavior from time to time that may or may not manifest on mainnet, specifically along the lines of gas prices as there aren’t many miners securing those test networks. I haven’t hear of any issues with Ropsten outside of normal thus far but will report back here if we do.

1 Like

Hi, how’s this going so far?

Hey @Noisyfox , I’m not sure where the 0 is coming from sporadically like that. Can you overwrite the gas cost to a low, typical number to avoid the 0?

Yeah we’ve done that. Also we’ve never seen this happen again so far.
Thanks for the help.

1 Like