Skip to content
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

transact() attempts to use unsupported eth_maxPriorityFeePerGas via JSON RPC on Kovan #23479

Open
shoenseiwaso opened this issue Aug 27, 2021 · 3 comments

Comments

@shoenseiwaso
Copy link
Contributor

shoenseiwaso commented Aug 27, 2021

With go-ethereum v1.10.8 connected to an Infura or Alcchemy Kovan node, it is unable to transact if gasPrice is nil. HeaderByNumber("latest") returns a non-nil head.BaseFee (implying EIP-1559 support), but then returns Method not found for eth_maxPriorityFeePerGas when ethclient.SuggestGasTipCap() is called.

The issue is on this line of code:

tip, err := c.transactor.SuggestGasTipCap(ensureContext(opts.Context))

go-ethereum client version: v1.10.8
node version (Infura and Alchemy Kovan): OpenEthereum//v3.3.0-rc.6-stable-5d9ff63-20210804/x86_64-linux-gnu/rustc1.52.1

Error in action - note the non-nil head.BaseFee and the Method not found error returned from ethclient.SuggestGasTipCap():

image

Have reported this to Infura support as well.

Easy workaround is to manually specify a gasPrice of 2000000000 (2 GWei).

@shoenseiwaso
Copy link
Contributor Author

Alchemy is also subject to this issue. Reported to them as well.

@shoenseiwaso shoenseiwaso changed the title Infura Kovan (OpenEthereum v3.3.0-rc.6?) is confused about EIP-1559 Infura and Alchemy Kovan (OpenEthereum v3.3.0-rc.6?) are confused about EIP-1559 Aug 27, 2021
@brg8
Copy link

brg8 commented Aug 27, 2021

Hi @shoenseiwaso, I'm an engineer at Alchemy. The eth_maxPriorityFeePerGas method is not part of the eth spec: https://github.com/ethereum/execution-specs/blob/master/json-rpc/spec.json. That method is a lovely addition by the geth team, and we all appreciate it!

However, Parity/OpenEthereum have not implemented that method and so Kovan is not going to register it at all. The geth client does not connect to Kovan, so when developing on the Kovan testnet you will have to estimate gas another way.

@shoenseiwaso
Copy link
Contributor Author

shoenseiwaso commented Aug 27, 2021

However, Parity/OpenEthereum have not implemented that method and so Kovan is not going to register it at all. The geth client does not connect to Kovan, so when developing on the Kovan testnet you will have to estimate gas another way.

Thanks for your reply - I wasn't aware OpenEthereum doesn't support this! Alchemy documentation for eth_maxPriorityFeePerGas doesn't indicate it's not supported on Kovan via Alchemy, it might be worth adding a note to this effect?

I think the issue is still valid as-is, in that the go-ethereum library should support connecting to a Kovan node over JSON-RPC.

@shoenseiwaso shoenseiwaso changed the title Infura and Alchemy Kovan (OpenEthereum v3.3.0-rc.6?) are confused about EIP-1559 transact() attempts to use unsupported eth_maxPriorityFeePerGas via JSON RPC on Kovan Aug 27, 2021
@ligi ligi removed the status:triage label Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants