Wallet generation solidity #892
Answered
by
AlanHeidel
covelitein
asked this question in
Q&A
-
|
How can I generate wallet addresses in my application as users register in my application and assign them those addresses so that they can receive ethers or send ethers. |
Beta Was this translation helpful? Give feedback.
Answered by
AlanHeidel
Oct 31, 2025
Replies: 2 comments
-
|
import { ethers } from "ethers"; function createUserWallet() { |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sanjay-kv
-
|
Server-Side with Node.js (ethers.js) Client-Side Generation |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import { ethers } from "ethers";
function createUserWallet() {
const wallet = ethers.Wallet.createRandom();
return {
address: wallet.address,
privateKey: wallet.privateKey,
mnemonic: wallet.mnemonic?.phrase
};
}