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. 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.
Apr 6, 2022 in Blockchain by Aditya
• 7,680 points
1,926 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. Learn more about Blockchain and its concepts from the Blockchain developer course.

answered Apr 12, 2022 by Soham
• 9,710 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,740 points
3,295 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,220 points
1,414 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,220 points
1,882 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,936 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,461 views
+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
1,443 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, 2022 in Blockchain by Soham
• 9,710 points
3,760 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, 2022 in Blockchain by Soham
• 9,710 points
1,428 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