Back to Browse

Switch MetaMask network to any chain 🛠 React.js

14.6K views
Premiered Dec 4, 2021
12:20

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

Download

1 formats

Video Formats

360pmp419.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Switch MetaMask network to any chain 🛠 React.js | NatokHD