27 lines
672 B
TypeScript
27 lines
672 B
TypeScript
/**
|
|
* Generate a new wallet for BSC Testnet deployment
|
|
*
|
|
* Usage: npx ts-node scripts/generate-wallet.ts
|
|
*/
|
|
|
|
import { ethers } from 'ethers';
|
|
|
|
const wallet = ethers.Wallet.createRandom();
|
|
|
|
console.log(`
|
|
🔐 New Wallet Generated for BSC Testnet
|
|
========================================
|
|
|
|
Address: ${wallet.address}
|
|
Private Key: ${wallet.privateKey}
|
|
Mnemonic: ${wallet.mnemonic?.phrase}
|
|
|
|
Next steps:
|
|
1. Go to https://www.bnbchain.org/en/testnet-faucet
|
|
2. Paste your address: ${wallet.address}
|
|
3. Get 0.1 tBNB
|
|
4. Run: npx ts-node scripts/deploy-test-usdt.ts ${wallet.privateKey}
|
|
|
|
⚠️ SAVE YOUR PRIVATE KEY! You'll need it for future contract interactions.
|
|
`);
|