Is there a way to auto switch to a specified chain network when wallet connection is established in Unity? Our smart contract currently is in the Etherium test & main net and I want our app to auto switch the users’ wallet when it’s not set to any Etherium networks
How have you connected your wallet? Is this with WalletConnect or WebGL (connecting wallet in browser)?
You could check the current chain and manually disconnect if the chainId is not what you want (and then change back to your connect wallet scene). You can’t switch the wallet’s current chain on the user’s behalf - but you can display a message saying that the user needs to be switch to Ethereum.
1 Like
hmm, ok
notifying the user to change their wallet network, I think, is a better approach since we’ll be building the app for multiple platforms. thank you @alex for taking the time to answer my question