import Align from "@tolbel/align";const align = new Align({ apiKey: process.env.ALIGN_API_KEY!, environment: "sandbox",});// Create a new random walletconst wallet = await align.blockchain.wallets.create();console.log(`Address: ${wallet.address}`);console.log(`Private Key: ${wallet.privateKey}`);console.log(`Mnemonic: ${wallet.mnemonic}`);
Security Warning: The privateKey and mnemonic give full access to the
wallet’s funds. Never expose them in client-side code or logs. Store them
securely (e.g., encrypted database, environment variables).