Search code examples
electronethereumweb3jsmetamaskdecentralized-applications

Dapp in Electron ? (without using Metamask)


I'm attempting to build a dApp (my first) for a university project. One part of the project is a React based website, and the other is an Electron desktop app.

I'd like to be able to create, sign, and get data about "my contracts" without using Metamask, because Electron doesn't support chrome extensions.

Is there a library that will let me basically do what Metamask does but without the extension (And without sending the private key anywhere)?

I'll note that I have seen an article about how to use Metamask with Electron (Muon), but it seems to be very complex, and some of the tools listed in the article are tagged as deprecated anyways.

Thank you.


Solution

  • You cannot use MetaMask in Electron apps.

    But you can use WalletConnect that already may have some desktop clients available.