-
Notifications
You must be signed in to change notification settings - Fork 326
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
Enhance gas price #803
base: master
Are you sure you want to change the base?
Enhance gas price #803
Conversation
I think this breaks both I'm probably OK with breaking scripts that rely on
|
Thanks for the thorough response @d-xo. My main intention was to start a discussion, so I think that this is great. For some reason, I didn't find any uses for the command. Weird. These are the TODOs as I see them:
What are you thinking about surfacing the following functionality:
This is a combination of |
I'm not sure I understand, can you provide some concrete examples.
I think this is a nice idea, but I think it's a little too specific to belong in core dapp. I think it makes more sense as a seperate tool. |
Is it too specific? I mean, if you are deploying a smart contract, you do want to know when it costs 1 ETH and when 3 ETH to deploy it, right? It could even be automated with a chron job so that it's deployed at the gas-price that you want. At least, that was how I approached it. Since I am super new, I am very curious to see how teams approach this issue, or perhaps they don't care about deployment cost? Making this an issue for the hobbyist, but not the professional in a team. |
I think this feels a little stateful and somewhat hard to compose. I would prefer keeping one command and allowing users to specify which output they want (e.g.
I think you['ve changed my mind. A |
I highly respect those who can change their mind. I hope it's as useful as I think it will be. |
oof GasNow is shutting down on October 18th so need to find another gas price api |
Yeah, I need to get around to implementing this. Perhaps: https://www.blocknative.com/ |
how about ethgasstation? https://ethgasstation.info/api/ethgasAPI.json says they require an API key but works fine for me without |
+1 for blocknative's gas estimator, they're always great in my experience |
Okay, I think I i will implement this the following days. It seems like an easy win. I have no experience with either operator. What do you think is best? From a UX standpoint, ethgas is better because the user doesn't have to get a personal API key. |
i def think we should find a free endpoint if possible— tho not sure which we can rely on @sambacha suggested using api.txprice.com which he says is a free proxy they run for blocknative enterprise (foundry-rs/forge-template#24) |
Agreed on a free one, good point about the blocknative API key. Just tested/confirmed that https://api.txprice.com/ returns the same data as blocknative, so that seems to be a great option and will personally that will be my default A good overview of other options can be found at https://github.com/sambacha/gas-reporting, also courtesy of @sambacha |
Yeah +1 on free option |
Description
possible improvements
Very open to suggestions and feedback :)