0

This question already has an answer here:

I've read that eth.gasPrice isn't reliable, because sometimes it suggests gas prices too low. Is there some API or something similar where I can get the current gas price? This is for an automated script, so I can't check and update gas prices manually.

marked as duplicate by Richard Horrocks, Achala Dissanayake, mirg, Lauri Peltonen, Malone Mar 29 '18 at 11:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

A pretty good source is https://ethgasstation.info and they also provide an API in the form of

https://ethgasstation.info/json/ethgasAPI.json

Make sure to read their rules for computing the gas price recommendation and there are multiple data sources they provide https://ethgasstation.info/json/

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