-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Goerli Gas Estimation Issue #360
Comments
We should use the goerli gas price API: https://docs.etherscan.io/v/goerli-etherscan/api-endpoints/geth-parity-proxy#eth_gasprice |
It returns this JSON, where apparently "result" is the gas price in wei: {
"jsonrpc":"2.0",
"result":"0x7029fe63",
"id":73
} Would need to figure out how to convert to int. Maybe something like int(bytes.fromhex(rps["result"])) |
Or maybe there's one w/o api key from here: https://explorer.bitquery.io/goerli/gas |
Forgive me if I'm missing something here, but could we use a node / RPC call for gas prices estimation on some of these chains? |
there is also this, https://api.owlracle.info/v3/goerli/gas, not sure how much we can rely on that api though, since we just started using but for gas price it doesn't seem to require an api key. |
Good question. I'm not sure why we don't use |
Discussed on discord, but I think bc it was unreliable when I tested it. Happy to try again, or maybe I just never tried it.. |
I think this can be closed bc of #364 |
In recent days, when Telliot calls
submitValue
on goerli, the transactions are frequently failing withSend transaction failed: ValueError({'code': -32000, 'message': 'replacement transaction underpriced'})
. I believe this might be because we're using a mainnet gas station api to estimate the goerli gas, and the gas price on goerli can actually be higher than it is on mainnet sometimes.start command:
telliot report -a goerli6 -p YOLO -wp 10000 -qt eth-usd-spot
The text was updated successfully, but these errors were encountered: