gofuncbrrr

find account in keystore by address

May 26th, 2021 (edited)
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function findAccount(address) {
  2.     var accs = eth.accounts;
  3.     var target = address.toLowerCase();
  4.     console.log("find " + target);
  5.     for (var i in accs) {
  6.         if(accs[i] == target){
  7.             return "exist";
  8.         }
  9.     }
  10.     return "not exist";
  11. }
Add Comment
Please, Sign In to add comment