Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross extension web3 APIs #8593

Closed
Jack-Works opened this issue May 14, 2020 · 3 comments
Closed

Cross extension web3 APIs #8593

Jack-Works opened this issue May 14, 2020 · 3 comments

Comments

@Jack-Works
Copy link

Now Metamask provides web3 on the web page for dapps, but it is not accessible from other browser extensions.

Does MetaMask public it's JSON RPC API at the browser extension level to enable cross extension communication? I didn't see that in the documentation.

Our use case:

Maskbook is a browser extension that allows encryption on Facebook and Twitter. The following screenshot is fund Gitcoin grants in Maskbook. Now Maskbook has a built-in eth wallet but it will be nice to call MetaMask to do the payment.

image

@jennypollack
Copy link
Contributor

See: MetaMask/extension-provider#3 (comment)
and https://github.com/MetaMask/metamask-extension-provider
Basically it should work, but none of us have had the time to test it ourselves yet - would be awesome if you could give it a go and let us know!

@rekmarks
Copy link
Member

Hi @Jack-Works, one more thing: you should stop using window.web3, as we will stop injecting it later this year. You should use window.ethereum instead, and bring your own library dependencies. We recommend ethers, but you can also bring your own web3.

@Tedko
Copy link

Tedko commented Aug 18, 2020

Updates on our side:

Clipboard - 2020年8月18日下午4点53分

would be great if you have any idea on this MetaMask/extension-provider#9 as well. Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants