Metamask / Mist / Parity Support
See original GitHub issueAs you mention in the readme, this library intends to include:
Complete functionality for all your Ethereum needs
If this is the case, one very common use case is have support Metamask (and even Mist / Parity). Is this feature on the roadmap? If not, is it worth attempting to implement?
As far as I know, it seems like it shouldn’t be too complicated, but obviously we don’t want to include web3 as a dependency, so we should somehow interact with the injected web3.currentProvider
directly; https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:12 (6 by maintainers)
Top Results From Across the Web
ICO For Beginners - Add Token in MEW, Parity, Mist, MetaMask
In this video I show you how simple it is to add a Token to your wallet. This video will be helpful for...
Read more >Using MetaMask and other wallets | Ethereum Cookbook
MetaMask, Mist, and MyCrypto are some of the popular wallets in the ... You can now use MetaMask with all supported websites for...
Read more >Metamask Vs Parity. Which browser extension is good to ...
I have two options available Metamask and Parity. Are there any other better options available to access DAPP from web browser?
Read more >Should I be using Mist or Parity? : r/ethereumnoobies - Reddit
I've tried both, and they seem to have different strengths and weaknesses. What are others using? Do most people just not run their...
Read more >Mist Migration Patterns - Marc Garreau - Medium
Mist Browser and Ethereum Wallet are no longer supported. For the context around this decision, see this blog post. The Mist team strongly...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should be good to go now. See https://github.com/ethers-io/ethers.js/commit/67bb0b7f93eee4c435555bcc3fe5eeda6614afc1.
Here is a modified version of the Metamask documentation for you to use ethers.js instead of using web3.
The reasons to use BN are:
The custom signer should instead of overriding
sign
, could instead overridesendTransaction
, which would give you the opportunity to intercept signing. This is how ethers.io creates a custom signer as well as the ethers-cli TestRPC wrappers. I haven’t had time to get a simple Custom Signer for MetaMask together, but I will try this week. The ethjs library is a thin wrapper around several ethers.js functions and cut and paste of some web3 functions. The easiest way to do what you wish is to extend the JsonRpcProvider, and override thesend
function to pass the calls off to theweb3.sendAsync
instead of call make a request to the network.Sorry, I have 4 projects I’m trying to catch up on (ethers.js, the firefly hardware wallet, Ethers Wallet and ethers.io) but am hoping to get at least a cookbook entry this week on how to create a custom signer that bridges into Metamask. We certainly need to add more hours in a day… 😃