-
Notifications
You must be signed in to change notification settings - Fork 249
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
Add eth_maxPriorityFeePerGas #201
Conversation
I'm actually weakly against these being available via JSON-RPC, at least under these names. If we give people this method they will use it because they will think they should, when they should basically never use this method. For |
I could get on board with Your argument against having |
I agree that it's not clear how With respect to So the alternative would be to return something else, like what Micah mentioned, but in that case I believe it should have a different name. Besides, it seems to me that deciding what exactly would be returned by that method will be easier once wallets start implementing strategies for setting the EIP-1559 values, so maybe the best thing to do would be to just wait until that happens, and then revisit this issue. |
@fvictorio Unless a centralized api is calculating their own gas price oracle (GPO) then you have to query the node for the current gas price. |
Yeah, I regretted writing that after sending it. The way our users use the node is definitely not representative of the rest of the ecosystem. I still think that an |
Right ok that makes sense. From my PoV it would be great if we can have some standard on how its implemented because as it stands now all the clients implement the internal GPO slightly differently which can cause some very under priced tx's. |
Just hit this issue in Geth's 1559 RPC implementation (ethereum/go-ethereum#22964 (comment)). My 2c is that eth.gasPrice should behave and return exactly what it does now. Otherwise we'll surely break someone's workflows if it suddenly becomes larger or smaller. I'm voting for adding an eth.gasTipCap (tongue-in-cheek) that estimates the tip or the user (in reality, As for the fee cap, I think clients should default to something meaningful if the user doesn't specify it (e.g. |
My proposal if we have a A lot of wallets have been asking what is the default they should use, so providing that to them would be useful. The returned value can be changed in a non-hard fork client release if the MEV per block changes significantly, which would cause uncle blocks to have a higher opportunity cost. |
It appears everyone is onboard with |
I feel like this is an appropriate discussion to have on this Friday's Gas API call given they will be the consumer of this to a large extent. @lightclient will merge this if no one objects to the API in the next day or so. |
4464aa5
to
ee0a37a
Compare
ee0a37a
to
b7fc649
Compare
@lightclient based on today's ACD conversation and going with |
@timbeiko good with me! |
This PR adds two new RPC methods:
eth_maxFeePerGas
-- returns amaxFeePerGas
estimate for quick inclusioneth_maxPriorityFeePerGas
-- returns amaxPriorityPerGas
estimate for quick inclusionAn alternative to introducing two new methods is to add an optional flag to
eth_gasPrice
that denotes whether the caller is interested in agasPrice
estimate or a EIP-1559 fee estimate. I have a weak preference for the two methods.I'll keep this as a draft until we feel there is good consensus on this issue.
cc: @tkstanczak, @ryanschneider, @MicahZoltu