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
GraphQL API should contain EIP-1559 London Hardfork methods #24386
Comments
I was looking a bit into query feeHistory($from: Long!, $to: Long!) {
blocks(from: $from, to: $to) {
number
baseFeePerGas
gasUsed,
gasLimit,
transactions {
maxFeePerGas
maxPriorityFeePerGas
}
}
} We have the list of base fees for the block range itself,
IMO the percentile logic for rewards can be left for clients to handle. |
I sort-of agree with these ideas. |
@s1na , I am not that much of a Gopher :( And our infrastructure (where geth GraphQL is used, and which helps me to notice various GraphQL inconsistencies and shortages) uses the geth releases only, not the self-built prereleases; so I have to wait till any next geth release to try any new GraphQL changes, unfortunately. |
Rationale
GraphQL API should contain everything necessary to create the transactions - such as, a GraphQL analog/endpoint to
eth_feeHistory
, but also probably other methods.Why should this feature exist?
Without this, the GraphQL API is not feature-complete and does not let you to create the transactions in post-EIP-1559 way. No way to get the real estimate what gas to use.
What are the use-cases?
Using Geth through GraphQL only, without resorting to JSON-RPC.
Implementation
Do you have ideas regarding the implementation of this feature?
No.
Are you willing to implement this feature?
No, but will happily test it out.
The text was updated successfully, but these errors were encountered: