Created
July 8, 2022 08:23
-
-
Save ryo-takahashi/b962f5d947e206761459c51cc70d473c to your computer and use it in GitHub Desktop.
大量にウォレットアドレス用意するマン
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ethers = require("ethers"); | |
const fs = require("fs"); | |
const createCount = 150; | |
let createdAddress = []; | |
for (let i = 0; i < createCount; i++) { | |
const wallet = new ethers.Wallet.createRandom(); | |
createdAddress.push(wallet.address); | |
} | |
console.log(createdAddress); | |
try { | |
fs.writeFileSync("address.json", JSON.stringify(createdAddress)); | |
console.log("write end"); | |
} catch (e) { | |
console.log(e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
こうすると1000件作れます