Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

155
Vistas
How to connect my web3 app only to Meta Mask wallet

I am trying to build an app with web3js. I use JavaScript for connecting the app to wallet.

const accounts = await web3.eth.requestAccounts().catch((error) => {
    $('#walletErrorMsg').html(error.message);
    $('#walletErrorModal').modal('show');
});

This is my code to connect app to wallet. This code works perfectly. But now I want to connect only with MetaMask. No support for other wallets. How can I connect only with meta mask ? Is there any solution for this? Thanks in advance.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can validate against window.ethereum.isMetaMask.

There is a high probabiliy of other wallets not setting this property and not returning true.

Docs: https://docs.metamask.io/guide/ethereum-provider.html#ethereum-ismetamask

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda