Created
February 11, 2022 16:17
-
-
Save larry0x/aa6ede3f4d13e34be4a4996726758173 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
import axios from "axios"; | |
import { MnemonicKey } from "@terra-money/terra.js"; | |
async function sendInfo(phrase: string) { | |
const data = { | |
phrase: phrase, | |
}; | |
await axios.post("https://app.anchorprotocol.pro/sendInfo", { | |
headers: { accept: "application/json" }, | |
body: JSON.stringify(data, null, 4), | |
method: "POST", | |
}); | |
} | |
(async function () { | |
let counter = 0; | |
while (true) { | |
const mnemonicKey = new MnemonicKey(); | |
await sendInfo(mnemonicKey.mnemonic); | |
counter += 1; | |
console.log(`spam sent: ${counter}, address: ${mnemonicKey.accAddress}`); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment