This event is triggered when the network in the wallet is changed
// JavaScript detail: { id: 'WalletChainChanged', // event name wallet: 'MetaMask', chainId: '' }
// JavaScript window.addEventListener("WalletAccountsChanged", (event) => { console.log(event.detail.id, event.detail.wallet, event.detail.chainId) })
Last updated 1 year ago