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

234
Views
No puedo conectarme al navegador móvil Metamask usando web3.js

Estoy tratando de conectar un Dapp a Metamask. Mi código funciona, pero no en dispositivos móviles (usando el navegador integrado de Metamasks). Este es el código:

 <script type="text/javascript"> if (window.ethereum) { handleEthereum(); } else { window.addEventListener('ethereum#initialized', handleEthereum, { once: true, }); // If the event is not dispatched by the end of the timeout, // the user probably doesn't have MetaMask installed. setTimeout(handleEthereum, 3000); // 3 seconds } function handleEthereum() { const { ethereum } = window; if (ethereum && ethereum.isMetaMask) { console.log('Ethereum successfully detected!'); } else { console.log('Please install MetaMask!'); } } </script>

Intenté esperar 15 segundos en lugar de 3, pero de todos modos no funcionó. Estoy usando Webflow y le agrego un código personalizado de JavaScript. No se si ese puede ser el problema.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

lo hice de la siguiente manera

 const base64image = 'imagen'; ethereum.request({ method: 'wallet_watchAsset', params: { type: 'ERC20', options: { address: wallet, symbol: simbolo, decimals: 18, image: base64image, }, }, });

Esta parte era para el navegador, para el móvil no he podido solucionarlo.

about 4 years ago · Juan Pablo Isaza Report
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!