Generate new Ethereum Wallet in NodeJS

0 votes

Are you familiar with Ethereum and web3js-API in node js?

I used the framework sails, and I am a little bit confused about how to generate a new account like (https://www.myetherwallet.com/). For now i used web3js-API v.1.0.0. I can get the current account and balance. I try to create a new account, but it returns an error, saying create is not a function, etc.

I used testnet, how can I connect it to metamask (Rinkeby Network)? So if I generate a new account, the account will appear in the metamask account list also.

If you know, please share. Thanks.

error

Apr 6 in Blockchain by Aditya
• 7,660 points
917 views

1 answer to this question.

0 votes

 In its simplest form, the Ethereum wallet is just a single private key that generates a random 256-bit integer - which is your private key/ The web3.js functions can import any private key with privateKeyToAccount - Which will derive an Ethereum public key and Ethereum address, which is just a trimmed public key, for you. Now web3.js can use your private key to sign transactions and messages

answered Apr 12 by Soham
• 9,670 points

Related Questions In Blockchain

0 votes
1 answer

How to generate new address for blockchain wallet?

You can use the following to generate ...READ MORE

answered Jul 16, 2018 in Blockchain by digger
• 26,720 points
2,410 views
0 votes
1 answer
0 votes
1 answer

UnhandledPromiseRejectionWarning: Insufficient funds error in Ethereum: NodeJS web3

sendSignedTransaction returns a promiEvent onto which you can chain then and catch: web3.eth.sendSignedTransaction('0x' + ...READ MORE

answered Oct 15, 2018 in Blockchain by Omkar
• 69,210 points
1,019 views
0 votes
1 answer

Ethereum nodejs: Contract address returning as undefined in console

As per the documentation, if you deploy the ...READ MORE

answered Oct 15, 2018 in Blockchain by Omkar
• 69,210 points
1,187 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,106 views
0 votes
1 answer
+3 votes
2 answers

How to run ethereumjs using Node.JS

You need to install testrpc globally on ...READ MORE

answered Mar 27, 2018 in Blockchain by ned_crew
• 1,610 points
636 views
0 votes
1 answer

Generate Ethereum addresses in HD Wallet using public key only (bitcoinj/web3j)

Like Bitcoin, Ethereum uses secp256k1. Ethereum addresses ...READ MORE

answered Apr 12 in Blockchain by Soham
• 9,670 points
1,917 views
0 votes
1 answer

Bitcoin Core on external SSD in OS X

 In order to do so, assuming you ...READ MORE

answered Feb 28 in Blockchain by Soham
• 9,670 points
172 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP