ethers.Wallet.createRandom() doesn't provide mnemonic
See original GitHub issueFrom the documentation for ethers.Wallet.createRandom()
it states:
Wallets created using this method will have a mnemonic
However, the mnemonic is not available.
This appears to be because createRandom() calls Wallet.fromMnemonic() which then generates a privateKey
to create a new Wallet
instance. However mnemonic
is not passed through to the new Wallet
instance that is returned.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
react-native app crash -> ethers.Wallet.createRandom({locale ...
I am developing a wallet and I want to use the mnemonic code in Korean, but it works well in debug mode, but...
Read more >Ethers.js function createRandom() is too slow when ...
I figured out that the createRandom() function is too slow because it is also creating a mnemonic of the private key.
Read more >Wallets — ethers.js 3.0.0 documentation
A wallet manages a private/public key pair which is used to cryptographically sign transactions and prove ownership on the Ethereum network. Creating Instances¶....
Read more >Signers - ethers
Returns a new Wallet with a random private key, generated from cryptographically secure entropy sources. If the current environment does not have a...
Read more >React Native slow / freeze whet i call ethers.Wallet ...
Wallet.fromMnemonic() [Ethers js 5.5.1] · Ask Question. Asked 1 year, 1 month ago.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Apologies for the false alarm, the issue was elsewhere.
The mnemonic is a getter, so your console.log implementation may just not be showing it. Try
console.log(wallet.mnemonic)
. 😃