web3-react
web3-react copied to clipboard
fix: coinbase errorcode addEthereumChain
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
web3-react | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 3, 2023 6:57am |
as 20/6/2023, I got the error like below:
{
"code": -32603,
"message": "Unrecognized chain ID. Try adding the chain using addEthereumChain first.",
"data": {
"originalError": {
"code": 4902
}
},
"stack": "Error: Unrecognized chain ID. Try adding the chain using addEthereumChain first.\n at ...",
"docUrl": "https://docs.cloud.coinbase.com/wallet-sdk/docs/errors?version=3.7.0&code=-32603&method=wallet_switchEthereumChain&message=Unrecognized+chain+ID.+Try+adding+the+chain+using+addEthereumChain+first."
}