Improve UX by programmatically switching the current network in the MetaMask wallet. Useful if you are using side-chains or 2nd layer solutions like Polygon, BSC, Optimism.
0:00:00 - Intro
0:01:55 - Network settings
0:03:40 - Finding network details
0:05:00 - Switching network from JS
0:06:50 - chainId format
0:10:20 - Detect network change
Get list of EVM networks:
https://chainlist.org/
https://chainid.network/chains.json
Code from this video:
https://codesandbox.io/s/react-metamask-network-switch-co6h6
#metamask #web3 #reactjs
Blog: https://fullstak.pl/
Instagram: https://instagram.com/fullstak_pl/
Discord: https://discord.gg/wntz749YWW
Twitter: https://twitter.com/ArtiChmaro