2

Try to create ether wallet by privateKey from Metamask account

1 Answer 1

4

MetaMask does not provide a way to get the private key through code by design. Any interaction with accounts in MetaMask has to be done through the Web3 API, to prevent a (malicious) website from stealing a user's private keys.

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