bitcoind.app
CommandsGuidesContact ↗
Home/Network/getnodeaddresses
Network

getnodeaddresses

Return known addresses which can potentially be used to find new nodes in the network.

Parameters

countnumberoptional
Number of addresses to return. Default: 1
networkstringoptional
Return only addresses of this network type

Returns

arrayArray of node address objects

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"getnodeaddresses","params":[5]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

[
  {
    "time": 1713571767,
    "services": 1033,
    "address": "192.168.0.6",
    "port": 8333,
    "network": "ipv4"
  }
]
← Previous
getnetworkinfo
Next →
getpeerinfo

More Network Commands

addnodeclearbanneddisconnectnodegetaddednodeinfogetconnectioncountgetnettotals

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗