0

I want to know if a particular ethereum address exist or not. Is there any way using web3.js

1
  • 3
    Hi there. All addresses exist. Do you mean is there a way to know if someone owns a private key that maps to a particular address? Jan 23, 2018 at 13:04

2 Answers 2

3

Actually, addresses are the hash result of a public key.

You question is somewhat a duplicate of this post , which already been answered.

The answer provided in the linked post should give you the keys on how to compute the elements in order to check if an address is valid.

Another article that might help you

0

It's not perfect solidity code, but it will show active users, who have some balance:

function DoesAddressExists(address SomeAddress) public view returns(bool){
   if(SomeAddress.balance>0)
         return true;
   return false;
}

e.g. if balance if more then 0, user is active.

NOTE: if user had some coins in history and now he/she send all coins to any other address, then also some coins will be left on the address. Its approx impossible to send 100% of 10^-18 level of coin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.