node-metamask icon indicating copy to clipboard operation
node-metamask copied to clipboard

Does it really needs MetaMask installed on browser?

Open danimesq opened this issue 5 years ago • 5 comments

Could it be used on Electron app without need of MetaMask installed?

danimesq avatar Jun 20 '19 20:06 danimesq

Hi @DaniellMesquita. I'm not sure what you mean by "without need of MetaMask installed". This library connects Node to MetaMask, so MetaMask is required. Could you explain?

ryanchristo avatar Jun 21 '19 05:06 ryanchristo

Do you know a module that works itself as a web provider, without needing MetaMask?

danimesq avatar Jun 21 '19 12:06 danimesq

Have you checked out ethers or web3? You can initialize a provider with both libraries that will allow you to interact with the Ethereum blockchain without MetaMask.

Also, if you are looking for a tool to easily interact with Ethereum wallets, I would recommend checking out a tool we created called purser, which pairs well with web3 and ethers.

ryanchristo avatar Jun 24 '19 03:06 ryanchristo

Also, if you are looking for a tool to easily interact with Ethereum wallets, I would recommend checking out a tool we created called purser, which pairs well with web3 and ethers.

It shows a popup window with a UI, called from a Electron app? Also, for using purser, I need to install ethers/web3?

danimesq avatar Jun 24 '19 16:06 danimesq

It shows a popup window with a UI, called from an Electron app?

I'm not sure I understand the question. This package connects Node to MetaMask. MetaMask requires a browser, therefore, a browser window will open that display the logs and allows you to sign and send transactions in your Node application using MetaMask, which is connected via websocket.

I would recommend checking out the links in the comment above. You do not need to install ethers or web3 to use purser but they are used as dependencies in purser. You can load a wallet instance using ethers and using web3 without purser but purser was built to simplify interaction with Ethereum based wallets and to support both hardware and software wallets.

ryanchristo avatar Jun 25 '19 03:06 ryanchristo