Auto switch selected chain to current approved dapp
Is your feature request related to a problem? Please describe. It's annoying when in a Dapp and I wan't to interact with Keplr. I nearly always want to open the chain primarily used by the Dapp I'm using. (Stargaze on Stargaze app).
Describe the solution you'd like
Auto open previously approved chain
Perhaps, when suggesting a chain, Dapps could populate a flag such as isCanonicalChain. Then when a user opens Keplr the canonical chain for that Dapp (at that domain/origin) would already be open. It would only auto-open the canonical chain once per window session.
Easy to switch back to previous chain If Keplr switches the current chain to the canonical Dapp, there could be a small banner at the top that says "<- Switch back to prev chain". that remains open until they close Keplr.
Could be disabled by user This functionality could be a setting ("Auto switch chain") that is default on in Keplr for users that dislike it for the dapp they commonly use.
Describe alternatives you've considered I've considered letting Dapps switch chains on demand for the user in the case where a Dapp uses multiple chains. However, I think this could be disorienting vs auto opening a single, canonical chain.
Keplr's concept is a multi-chain wallet, and this concept makes it difficult to choose one chain. See the main page of wallet.keplr.app. Website can use multiple chains at the same time, and in this case, which chain should the user choose?
Keplr was originally created to encourage such usage, and is not intended to be used as a main chain by users, such as metamask.
For this reason, it is difficult to know which chain the users want and add these features.
Definitely true. But think about the stargaze app. Wouldn't it be convenient to let the stargaze dapp auto select the stargaze chain in Keplr? I think there are many other dapps that would benefit the same.
1+
1+
@Thunnini @dogemos --- @sunnya97 and I agree this should be a feature of Keplr. The equivalent feature in MetaMask is the suggest network feature. It would slightly improve the new/eth onboarding experience.
It doesn't have to be a separate step, it could be a part of the connect wallet workflow (a check box that explains it will switch chains as well as connect).