const Web3 = require("web3");
const Web3 = require("web3");
let eth = new Web3(new Web3.providers.HttpProvider("http://127.0.0.1:8545/")).eth;
const start = async function () {
do {
let account = eth.accounts.create()
await eth.getBalance(account.address).then(
(data) => {
if (data != "0") {
console.log("%s: %s", account, data);
}
}
);
} while (true);
}
start();
给大伙整了个 ETH 算命脚本,它可以帮你生成一个有钱的 ETH 地址,最后祝大家武运昌隆。
使用文档 https://github.com/du5/eth-gen/blob/main/README.md