gofuncbrrr

rerun pending transactions

May 27th, 2021 (edited)
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function rerun() {
  2.     eth.pendingTransactions.forEach(function(transaction) {
  3.         try {
  4.             personal.sendTransaction({ from: transaction.from, to: transaction.from, value: 0, nonce: transaction.nonce });
  5.             console.log(JSON.stringify({ from: transaction.from, to: transaction.from, value: 0, nonce: transaction.nonce, hash: transaction.hash }))
  6.         } catch (e) {
  7.             console.error(e);
  8.         }
  9.     });
  10.  
  11.     return "done";
  12. }
  13.  
  14.  
Add Comment
Please, Sign In to add comment