Juanro Alvarado
Juanro Alvarado

Reputation: 1

Finding my peers network addresses bitcoin

I'm trying to get all of the current ip addresses for the peers connected to my node. A bit similar to what bitnodes is doing. I can't figure out if there is an API call to be sent from the bitcoind client which returns a list of addresses.

I've read about the getaddr message but have no idea how to send it to the node's peers.

Upvotes: -1

Views: 592

Answers (1)

ergesto
ergesto

Reputation: 397

You can use the getpeerinfo command, Returns data about each connected node.

Upvotes: -1

Related Questions