How to create a new Metamask Wallet by web3.js from node.js?

Also you can look at the library:
@metamask/bip39

But be careful!

This is a temporary fork of the bip39 package created by the MetaMask team. Please do not use this package for other projects, use bip39 directly instead. We are not interested in maintaining this long-term. We will abandon this as soon as we find a suitable replacement, and will not be accepting community issues or PRs.

Using it you can generate a phrase automatically:

// Generate a random mnemonic (uses crypto.randomBytes under the hood), defaults to 128-bits of entropy
const mnemonic = bip39.generateMnemonic()



>how to create a MetaMask wallet from Node.js app but no solution found

@anisur072
Don’t forget that MetaMask is an open source product and you can always make your own commit with new features. As for Node.js, if you can’t find a suitable solution or library for your needs, you can create it yourself :wink:

3 Likes