How to create random Wallet with provider
See original GitHub issueHey, is there a recommended way to create a random wallet with a provider?
like let randomWallet = ethers.Wallet.createRandomWithProvider(entropy,provider);
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Create random Wallet with connection to a specific provider ...
I am trying to create random wallets via the function Ethers.Wallet.createRandom with a connection to a specific network (like Ropsten for ...
Read more >Wallets and Signers — ethers.js 4.0.0 documentation
Creates a new random wallet. Ensure this wallet is stored somewhere safe, if lost there is NO way to recover it. Options may...
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 >Ethers js adding provider - Ethereum Stack Exchange
With creating a random wallet, it doesnt seem like you can give it the provider like when importing a private key.
Read more >How to generate Ethereum wallet with ethers.js - Medium
With the ethers.js library, you can generate Ethereum wallet by writing the code below: Code (Node.js). const ethers = require('ethers')
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
@jmoralesss Oh. I see. If it is not connected to a provider is can only sign messages, sign typed data and sign transactions.
You require a provider for it to send a transaction, since it needs to be broadcast to the network, which is what a Provider offers: a connection to the blockchain. If it has a provider, it can also be used to simulate transactions (
.call
) and estimate gas, etc.Thanks for you response. Sorry for badly wording that question.
What is the difference in the return value between
ethers.Wallet.createRandom().connect(provider)
andethers.Wallet.createRandom()
?