Hello everyone!

Have anyone encountered this error hen chaning provider?


Error: underlying network changed (event="changed", network={"name":"matic","chainId":137,"ensAddress":null}, detectedNetwork={"name":"bnb","chainId":56,"ensAddress":null,"_defaultProvider":null}, code=NETWORK_ERROR, version=providers/5.7.0)

Mar 2, 2023, 4:34 PM
Using wagmi?
Mar 2, 2023, 4:35 PM
nope, using etheres provider
after i change it with

await provider.send("wallet_switchEthereumChain", [
{ chainId: Web3.utils.toHex(values[0].chain) },
]);

I get the error
hmmm
Mar 2, 2023, 4:36 PM
You can use request instead of send
https://ethereum.stackexchange.com/questions/117156/how-to-ask-the-metamask-user-to-switch-its-network
Mar 2, 2023, 4:37 PM
Can you recomend a library where I can add different wallets (not only more traditional wallets, but also coin98 and etc.) that can work both on desktop and mobile

Please πŸ™
Mar 2, 2023, 5:31 PM
I don’t know of any tbh, sorry
Mar 2, 2023, 5:34 PM
Thanks, man
Mar 2, 2023, 5:45 PM
One popular library for building cryptocurrency wallets that supports multiple coin and is compatible with both desktop and mobile platforms is the walletconnect library
For using this protocal , you need to connect Tron and BSC wallet to the Anyswap interface.
Once connected, you can select USDT token and enter the amount you wish to transfer
After transfer is completed, you will be able ot see the USDT in your BSC wallet.
And then can you try with JustBridge protocal?
and then last option is Huobi Eco Chain
let me check
yes,
you are right.
πŸ˜€
Mar 2, 2023, 10:26 PM

Β© 2024 Draquery.com All rights reserved.