فارسی | English
With this code, you can easily increase your Fuel node transactions. Just run this code in your browser's console, and it will automatically handle transactions as long as the console and your dapp window are open.
##Make sure you have a faucet ; otherwise, the transactions will fail.
To use this, you need to paste the code below into your browser's console (just copy and paste it). I recommend using the Brave browser.
- First, open the link to your Fuel node Dapp.
- Press F12 to open the console.
- Paste the code and press Enter.
- That's it! Let the transactions process automatically. You don't need to do anything else. You can minimize the browser and continue with your other tasks!
function getRandomInterval(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min) * 1000;
}
function clickButton() {
var buttons = document.querySelectorAll('button');
var button;
for (var i = 0; i < buttons.length; i++) {
if (buttons[i].innerText === "Increment Counter") {
button = buttons[i];
break;
}
}
if (button) {
button.click();
console.log('Button clicked at ' + new Date().toLocaleTimeString());
} else {
console.log('Button not found');
}
setTimeout(clickButton, getRandomInterval(8, 13));
}
clickButton();
Keep in mind that in the parameter setTimeout(clickButton, getRandomInterval(8, 13));
you can change the transaction timing.
However, it's recommended not to set it to less than 8 seconds to ensure the transactions go through. You can adjust this range as you prefer, for example: (10, 20)
.