web3ui / web3uikit

Lightweight reusable Web3 UI components for dapps.

Home Page:https://web3uikit.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changing metamask chain after user is connected from web3connect

xsaad67 opened this issue Β· comments

How can i change the chain of user once it gets connected from the metamask?

Hey @xsaad67,

Apologies for the late reply πŸ˜…
Switching a network functionality is not present in web3uikit Yet !!

You can use wagmi or ethers package to switch the network easily
From a quick google search - https://davidkathoh.medium.com/programatically-switch-network-on-metamask-e9a44525cab

Hope this helps, if you have more queries please join our discord channel and we will be happy to help you πŸ™ŒπŸ»

Will close this issue since its not related to web3uikit and we have similar plans to work on the kit, hope you understand πŸ™‡πŸ»