Aleo-Blockchain-Script-for-Generating-a-New-Wallet

Script for Aleo blockchain users that allows you to generate a new wallet const { generateWallet } = require('@aleo/web3'); const fs = require('fs');

// Generate a new wallet const wallet = generateWallet();

// Save the wallet details to a JSON file fs.writeFileSync('aleo_wallet.json', JSON.stringify(wallet), 'utf-8');

// Display the wallet address and private key console.log('New Aleo Wallet Generated:'); console.log('Address:', wallet.address); console.log('Private Key:', wallet.privateKey);