Closed Darlington02 closed 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!
With the deprecation of
goerli2
, all dapps on Starknet are built on eithermainnet
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
orgoerli
], 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