Advertisement
Guest User

Untitled

a guest
Oct 25th, 2017
1,021
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. var counter = 0;
  2.  
  3. function startMining(times){
  4. if (counter < times){
  5. web3.eth.sendTransaction({to:"0x03df4c372a29376d2c8df33a1b5f001cd8d68b0e", from: "[YourAddress]", data: getData, gas: [GasLimit], gasPrice: web3.toWei([GasPriceInGWEI],'gwei')});
  6. console.log("sending transaction nr " + counter);
  7. //repeat the last 2 lines if you want to mine with multiple addresses
  8. counter++
  9. startMining(times);
  10. }else{
  11. console.log(": sent " + times + " transactions");
  12. console.log("sleeping 5 minutes (" + Date() + ")");
  13. admin.sleep(300);
  14. counter = 0;
  15. startMining(times);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement