daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Oct 25th, 2017 590 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top