starknet-io / SNIPs

Starknet Improvement Proposal repository
MIT License
158 stars 99 forks source link

SNIP 10: Wallet Switch Starknet Chain RPC Method - `wallet_switchStarknetChain` #45

Closed Darlington02 closed 11 months ago

Darlington02 commented 1 year ago

With the deprecation of goerli2, all dapps on Starknet are built on either mainnet or testnet - goerli, with some dapps implementing both e.g block explorers.

Most wallets only supports interacting with one chain at a time. We call this the wallet’s “active chain”. Since Starknet users are expected to interact with either of both chains, [mainnet or goerli], it's important to enable dapps to be able to switch the user's chain to the appropriate one.

wallet_switchStarknetChain enables dapps to request that the wallet switches its active chain to whichever one is required by the dapp. This improves the UX for both dapps and wallets by a long mile.

Community Forum Discussion: https://community.starknet.io/t/wallet-switch-starknet-chain-rpc-method-wallet-switchstarknetchain/102034

github-actions[bot] commented 11 months ago

There hasn't been any activity on this pull request recently, and in order to prioritize active work, it has been marked as stale. This PR will be closed and locked in 7 days if no further activity occurs. Thank you for your contributions!