Answers for "metamask event disconnect"

0

metamask event disconnect

web3.ethereum.on("accountsChanged", accounts => {
  if (accounts.length > 0)
    console.log(`Account connected: ${accounts[0]}`);
  else
    console.log("Account disconnected");
});
Posted by: Guest on June-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language