Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

164
Views
Metamask / web3 autenticando usuario

Estoy trabajando con web3.js. He instalado metamask en mi navegador Chrome. Obtuve la dirección de la billetera, pero cuando usé new web3 (window.ethereum); obtuve un error como (índice): 365 Uncaught (en promesa) TypeError: web3 no es un constructor. mi codigo es:-

 $(document).ready(function () { const ethereumButton = document.querySelector('.enableEthereumButton'); const showAccount = document.querySelector('.ethereumwalletaddress'); const showErrorAccount = document.querySelector('.walletErrorMessage'); ethereumButton.addEventListener('click', () => { if (typeof window.ethereum !== 'undefined') { getAccount(); }else{window.open("https://metamask.io/download/",'_blank');} }); async function getAccount() { accounts = await window.ethereum.send('eth_requestAccounts'); console.log(accounts['result']['0']); window.web3 = new web3(window.ethereum); var accounts = await web3.eth.getAccounts(); signature = await web3.eth.personal.sign(message, account); } })

que puedo hacer para solucionar esto?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!