I’m working with React dapp and I have MetaMask connection logic in there.
If user want to switch connected account, they should open MetaMask from the browser by clicking his icon and switch account and connect to dapp.
Is it possible to open Metamask to switch account something like network switching request wallet_switchEthereumChain?
Thank you, For your tip, But actually I have switch network feature in my app, and it worked perfectly. My expectation is not switching network, Just want to have switch account feature.
I am aware that MetaMask has an eth_requestAccounts method to connect accounts, it is only used to link accounts when none are connencted.
But if you already have one account linked, then when you call this method to switch another account and connect nothing happens and no popup opens.
so actually I hope to get the idea how to open Metamask popup to switch accounts.
Sorry, @BlackHorse . I’m reaching out to some 's and will try to get you a helpful answer. Was trying to see if I could help get you on a path but I know I’m still off in regards to where you want to go. I’ll be back .