keplr-wallet icon indicating copy to clipboard operation
keplr-wallet copied to clipboard

Auto switch selected chain to current approved dapp

Open jonator opened this issue 3 years ago • 4 comments

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.

jonator avatar May 20 '22 23:05 jonator

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.

Thunnini avatar May 25 '22 09:05 Thunnini

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.

jonator avatar May 25 '22 14:05 jonator

1+

vinodhum avatar Jun 11 '22 17:06 vinodhum

1+

lopezgonzalo2025 avatar Aug 10 '22 05:08 lopezgonzalo2025

@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).

CleanShot 2023-01-09 at 12 22 27@2x

jonator avatar Jan 09 '23 04:01 jonator