0

I have MEW and Metamask installed.

When I am trying to send a transaction using:

web3.eth.sendTransaction()

It always uses Metamask. May I know how can I specify I want to use MEW instead?

2

The MEW browser extension isn't a web3 provider, so you can't use it to send transactions directly on your website, like with MetaMask.

Besides that, most web3 providers inject a global web3 object. If you have multiple browser extensions (or other software) injecting web3 providers, they will override each other.

3
  • Thanks, do you have any idea how can I sendTransaction with MEW? – s k Oct 21 '19 at 12:02
  • It's not possible to send transactions through MEW directly from your website. You can instruct users to send a transaction through their preferred method, or implement some kind of wallet functionality yourself, depending on your use case. – Morten Oct 21 '19 at 12:58
  • Furthermore, it makes no sense to use MEW. MetaMask can send transactions as well. No need to make it complicated. – Niklas Feurstein Oct 21 '19 at 19:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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