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

157
Views
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 answers
Answer question

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 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!