getnodeaddresses

getnodeaddresses ( count )

Returns a list of known addresses that can potentially be used to discover new nodes in the network.

Argument #1 – count

Type: numeric, optional, default=1

You can specify the maximum number of addresses to return, or set it to 0 to return all known addresses.

Result

[                         (json array)
  {                       (json object)
    "time" : xxx,         (numeric) The UNIX epoch time of when the node was last seen
    "services" : n,       (numeric) The services offered
    "address" : "str",    (string) The address of the node
    "port" : n            (numeric) The port of the node
  },
  ...
]

Examples

bitcoinevo-cli getnodeaddresses 8
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getnodeaddresses", "params": [8]}' -H 'content-type: text/plain;' http://127.0.0.1:7332/