getaddednodeinfo dns ( "node" )
Returns information about the given added node, or all added nodes
If dns is false, only a list of added nodes will be provided, otherwise connected information will also be available.
(note that onetry addnodes are not listed here)
dns (boolean, required)
If false, only a list of added nodes will be provided, otherwise connected information will also be available.
"node" (string, optional)
If provided, return information about this specific node, otherwise all nodes are returned.
[
{
"addednode" : "192.168.0.201", (string) The node ip address
"connected" : true|false, (boolean) If connected
"addresses" : [
{
"address" : "192.168.0.201:11337", (string) The smileycoin server host and port
"connected" : "outbound" (string) connection, inbound or outbound
}
,...
]
}
,...
]
smileycoin-cli getaddednodeinfo true
smileycoin-cli getaddednodeinfo true "192.168.0.201"
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddednodeinfo", "params": [true, "192.168.0.201"] }' -H 'content-type: text/plain;' http://127.0.0.1:9332/