How to get all nodeaddresses?

+1 vote
Hi,

how can I get the nodeaddresses of all nodes in a blockchain?

multichain-cli chain1 getaddresses -> I get the address of Node1

is there any command or a workaround which returns the addresses of all nodes?

Thank you.

Best regards,

sandj
asked May 6, 2017 by Sandjar

1 Answer

0 votes
 
Best answer

You can use getpeerinfo to retrieve the address used by each of a node's peers for handshaking. You can use listpermissions to get a list of all addresses which have had permissions assigned.

But there is no way to get a list of all addresses of all nodes on the blockchain, because this is not information that is visible on the chain. Nodes can create as many addresses as they want without letting other nodes know about them.

If you want to make sure all addresses are visible, you should use a stream to have each node publish their addresses as they create them. This might also be a sensible use for the root stream.

answered May 7, 2017 by MultiChain
...