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
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); |
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
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; |