[Ethereum] Create ether wallet account using node js and web3

ethereumjsmyetherwalletnodejsweb3js

Hello I want to create a ether wallet account using node js and web3. Can anyone please help me in this regard.
Thanks in advance!

Best Answer

Try this,

1st make sure you have web3 installed.

npm install web3

then add the following to one of your nodejs files.

var web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545'));

web3.eth.personal.newAccount('!@superpassword').then(console.log);
> '0x1234567891011121314151617181920212223456'
Related Topic