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