You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked there isn't already an issue for the bug I encountered.
Describe the bug
Hi! i'm having an issue when using writeContractAsync with MetaMask. When I try to execute contract write function (like approve or transfer), the transaction fails with an “Internal JSON-RPC error”.
The general error message I see is: Internal JSON-RPC error.
When I check MetaMask, I see more details: { "code": -32603, "message": "Internal JSON-RPC error.", "data": { "code": -32000, "message": "transaction underpriced: tip needed 25000000000, tip permitted 1500000000", "cause": null } }
I use the Polygon Amoy testnet and don’t calculate gas myself, as I know WAGMI does this automatically. So, is the error on my side or MetaMask’s side? Thanks!
Check existing issues
Describe the bug
Hi! i'm having an issue when using writeContractAsync with MetaMask. When I try to execute contract write function (like approve or transfer), the transaction fails with an “Internal JSON-RPC error”.
The general error message I see is:
Internal JSON-RPC error.
When I check MetaMask, I see more details:
{ "code": -32603, "message": "Internal JSON-RPC error.", "data": { "code": -32000, "message": "transaction underpriced: tip needed 25000000000, tip permitted 1500000000", "cause": null } }
I use the Polygon Amoy testnet and don’t calculate gas myself, as I know WAGMI does this automatically. So, is the error on my side or MetaMask’s side? Thanks!
Link to Minimal Reproducible Example
https://stackblitz.com/edit/new-wagmi-27qjgx?file=src%2FApp.tsx
Steps To Reproduce
What Wagmi package(s) are you using?
wagmi
Wagmi Package(s) Version(s)
2.12.12
Viem Version
2.21.9
TypeScript Version
5.0.2
Anything else?
React @18.2.0
The text was updated successfully, but these errors were encountered: