Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to connect metamask wallet with js

async function connectWallet() {
  const provider = new ethers.providers.Web3Provider(window.ethereum)
  await provider.send("eth_requestAccounts", []);
  const signer = provider.getSigner() 
}
Source by # #
 
PREVIOUS NEXT
Tagged: #connect #metamask #wallet #js
ADD COMMENT
Topic
Name
4+5 =