Guest User

Untitled

a guest
Jan 24th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. const provider = new Web3.providers.HttpProvider("https://mainnet.infura.io/");
  2. const web3 = new Web3(provider);
  3.  
  4. const alphabet = [0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f];
  5. const input = "0xb6b2ceb624a6b667e67af1893b16706baec21";
  6.  
  7. for (x in alphabet) {
  8. for (y in alphabet) {
  9. for (z in alphabet) {
  10. let address = input + x + y + z;
  11. let balance = new BigNumber(web3.eth.getBalance(address));
  12.  
  13. if(balance.greaterThan(new BigNumber(0)) {
  14. console.log(address + "=" + web3.fromWei(balance, "ether"));
  15. }
  16. }
  17. }
  18. }
Add Comment
Please, Sign In to add comment