Using web3.py, I'm gonna create new account, however, I can't get passphrase.

Generates a new account in the node’s keychain encrypted with the given passphrase. Returns the address of the created account.

web3.personal.newAccount('the-passphrase') ['0xd3cda913deb6f67967b99d67acdfa1712c293601']

I saw this paragraph in Web3.py docs. How to generate passphrase?

  • You can use any passphrase as you wish.It will generate address and the private key encrypted with the given passphrase. – Crissi Mariam Robert Mar 28 '18 at 5:01

'the-passphrase' is password to be supplied by you, which will be used to encrypt new account's private key.

So when you will access this new account, system will ask for password which was used to encrypt account's private key.

  • Hi @kherwa! I have an issue. Function web3.personal.newAccount is not active. Or do you have a method to create a new account? – Coder HHC Apr 1 '18 at 12:17
  • How you have setup ethereum node and instantiated web3 object? – kherwa Apr 1 '18 at 14:56
  • Sorry, I am new to ethereum. Now I am devoloping project that create account and is able to send and receive ethereum. Need I setup ethereum node? Without ethereum node, can not I develop project? Excuse me, can you tell me how to contact you? I need your help. Thanks. – Coder HHC Apr 1 '18 at 15:06
  • Thanks. I sent email to you with my skype ID. There pls describe in details. Sorry. – Coder HHC Apr 1 '18 at 15:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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