I want to connect my website to my Metamask wallet, I need the code that makes a button connect in my website to connect with My Metamask? what is the code? where shall I add it? in which file on my website? which line? I need help.


2 Answers 2


Have a look at the developer doc getting started https://docs.metamask.io/guide/getting-started.html

  • I have taken a look at these docs. but which code is correct? where shall I add them? I wish if those developers add screenshots to which directory they have to add these codes, or which file, which line and so. details important for people like us.
    – Hishamjo
    Commented Jul 13, 2021 at 5:56

I was confused with it too earlier, but this video helped me.

So you can truffle unbox react in some test folder and get an idea of how it is done. At least it helped me!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.