Skip to content

getaddednodeinfo JSON-RPC command

getaddednodeinfo ( "node" )

Returns information about the given added node, or all added nodes
(note that onetry addnodes are not listed here)


1. node    (string, optional) If provided, return information about this specific node, otherwise all nodes are returned.


    "addednode" : "",   (string) The node IP address or name (as provided to addnode)
    "connected" : true|false,        (boolean) If connected
    "addresses" : [                  (list of objects) Only when connected = true
         "address" : "",  (string) The bitcoin server IP and port we're connected to
         "connected" : "outbound"           (string) connection, inbound or outbound


> bitcoin-cli getaddednodeinfo ""
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddednodeinfo", "params": [""] }' -H 'content-type: text/plain;'

Bitcoin Cash Node Daemon version v27.0.1-6ebcb9e

Documentation on reflects the current master branch in Git, and may include API changes that are not yet present in the latest release.