Ethereum – How to Create a New Account Using web3.py

pythonweb3.py

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?

Best Answer

'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.

Related Topic