nodejs generate ethereum address
const ethers = require('ethers');
// Step 1: Generate a random mnemonic (12 words)
const mnemonic = ethers.Wallet.createRandom().mnemonic;
// Step 2: Derive the wallet from the mnemonic
const wallet = ethers.Wallet.fromMnemonic(mnemonic);
// Step 3: Get the Ethereum address from the wallet
const address = wallet.address;
console.log('Mnemonic:', mnemonic);
console.log('Address:', address);