Skip to content

Instantly share code, notes, and snippets.

@larry0x
Created February 11, 2022 16:17
Show Gist options
  • Save larry0x/aa6ede3f4d13e34be4a4996726758173 to your computer and use it in GitHub Desktop.
Save larry0x/aa6ede3f4d13e34be4a4996726758173 to your computer and use it in GitHub Desktop.
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