Getting node information from address

+1 vote
Lets say we have 2 nodes N1 and N2.Both have few addresses in their wallets , say N1(A1,A2,A3) and N2(A4,A5,A6)

now i i have connect function like, connect(A),which connects to proper node based on whether A exist in N1 or N2.

Right now i am fetching all the addresses from both nodes with getaddresses and comparing with A.

How do i get node information like ip,port etc directly from and address (A) ?
asked Mar 2, 2016 by anonymous

1 Answer

0 votes
I'm afraid you can't get this information directly from the address, because every address is based on a randomly generated private key, whose content is not related to which node it was generated on.
answered Mar 2, 2016 by MultiChain
I should add, you can use the validateaddress API to check if an address belongs to a particular node - see the ismine field of the response.
how can we get the wallet address from multi chain
Call getaddresses to get a list of addresses in the wallet.