Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var counter = 0;
- function startMining(times){
- if (counter < times){
- web3.eth.sendTransaction({to:"0x03df4c372a29376d2c8df33a1b5f001cd8d68b0e", from: "[YourAddress]", data: getData, gas: [GasLimit], gasPrice: web3.toWei([GasPriceInGWEI],'gwei')});
- console.log("sending transaction nr " + counter);
- //repeat the last 2 lines if you want to mine with multiple addresses
- counter++
- startMining(times);
- }else{
- console.log(": sent " + times + " transactions");
- console.log("sleeping 5 minutes (" + Date() + ")");
- admin.sleep(300);
- counter = 0;
- startMining(times);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement