Skip to content

Instantly share code, notes, and snippets.

@GpanosXP
GpanosXP / iotaWalletGenAddresses.js
Last active May 24, 2018 16:53
A script that continually clicks the generate new address button until you tell it to stop.
var genAddrId = genAddrId || undefined;
clearInterval(genAddrId);
var btnAddr = document.getElementById("generate-address-btn");
function genNewAddr()
{
if (btnAddr.innerText[2] != "D") return;
btnAddr.click();
setTimeout(function() { btnAddr.click(); }, 1000);
@GpanosXP
GpanosXP / getUsefulTipsPercent.js
Last active September 24, 2017 09:05
Finds the % of non-zero value tips (unconfirmed transactions) on an IOTA full node.
var iota = new IOTA();
var th, t, total, counter;
iota.api.getTips((error, tipHashes) => {
th = tipHashes;
console.log("Counting useful (non-zero) tips, please wait...");
iota.api.getTransactionsObjects(tipHashes, (error, tips) => {
t = tips;