Search code examples
google-chrome-extensionethereummetamaskcoinbase-apievm

How to generate address in metamask/coinbase progrematically?


I'm planning to build a chrome extension that interacts with Metamask/Coinbase. I wonder if this is fisibile with the current Metamask API.

Question

I need to generate a new address on the user Metamask/Coinbase wallet from my chrome-extension. Is it possible?

Expected results

My chome-extentsion will try to reach out to the user's Metamask/Coinbase and create a new address. Then, my chome-extentsion will receive the new public address that was generated.


Attempts

I could not found something usefull here: https://docs.metamask.io/guide/rpc-api.html


Solution

  • I need to generate a new address on the user Metamask/Coinbase wallet from my chrome-extension. Is it possible?

    It is not possible. Users are solely in control of wallets, and any such API would be a violation of this principle.

    Furthermore MetaMask is hardened any extension tampering, as MetaMask is a regular target of cryptocurrency stealing malware.