Describe the bug
When using wagmi with configured private rpc api url and metamask connector, metamask still uses default rpc (perhaps for quering gasFee estimation or doing eth_call simulation), which often leads to 429 error. Shouldn't Metamask use the supplied rpc api here somehow to avoid that?
Expected behavior
Metamask to use supplied rpc api for fee estimation, or handle 429 errors better
Screenshots/Recordings
Steps to reproduce
Hard to have consistent reproduction as it is dependant on public base (mainner.base.org) rpc requests load.
- set up wagmi config and supply custom rpc in
transports object
- send a transaction with
writeContract and then open dev console of the metamask extension
- observe that the rpc used by metamask is a default rpc (mainner.base.org), instead of the configured rpc
Error messages or log output
Error: Non-200 status code: '429'
Detection stage
In production (default)
Version
12.1.3
Build type
None
Browser
Brave, Other (please elaborate in the "Additional Context" section)
Operating system
MacOS
Hardware wallet
No response
Additional context
Both Brave and Arc browsers (both latest chromium)
Severity
- Quite critical as during busy hours, users can't submit a transaction and blame us, and we have no way to handle it
Describe the bug
When using wagmi with configured private rpc api url and metamask connector, metamask still uses default rpc (perhaps for quering gasFee estimation or doing eth_call simulation), which often leads to 429 error. Shouldn't Metamask use the supplied rpc api here somehow to avoid that?
Expected behavior
Metamask to use supplied rpc api for fee estimation, or handle 429 errors better
Screenshots/Recordings
Steps to reproduce
Hard to have consistent reproduction as it is dependant on public base (mainner.base.org) rpc requests load.
transportsobjectwriteContractand then open dev console of the metamask extensionError messages or log output
Error: Non-200 status code: '429'Detection stage
In production (default)
Version
12.1.3
Build type
None
Browser
Brave, Other (please elaborate in the "Additional Context" section)
Operating system
MacOS
Hardware wallet
No response
Additional context
Both Brave and Arc browsers (both latest chromium)
Severity