Description Usage Arguments Details Value Author(s) References
Retrieve information about incoming and outgoing connections to your node.
1 2 | getConnections(ip = getOption("monerod.ip", "127.0.0.1"),
port = getOption("monerod.port", 18081))
|
ip |
daemon ip address |
port |
daemon port |
You may need to ‘Sys.setlocale(’LC_ALL','C')' before running this function because often the data returned contains a string that is not valid in all locales.
connections - List of all connections and their info
avg_download unsigned int; Average bytes of data downloaded by node.
avg_upload unsigned int; Average bytes of data uploaded by node.
current_download unsigned int; Current bytes downloaded by node.
current_upload unsigned int; Current bytes uploaded by node.
incoming boolean; Is the node getting information from your node?
ip string; The node's IP address.
live_time unsigned int
local_ip boolean
localhost boolean
peer_id string; The node's ID on the network.
port stringl The port that the node is using to connect to the network.
recv_count unsigned int
recv_idle_time unsigned int
send_count unsigned int
send_idle_time unsigned int
state string
Garrett See
https://getmonero.org/knowledge-base/developer-guides/daemon-rpc#getconnections
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.