Returns details about the node's network configuration, including listening port, local addresses, and network‑related flags.
Arguments
- conn
A connection object created by
mc_connect.
Value
A list containing network information, typically:
- version
Node version.
- subversion
Node subversion string.
- protocolversion
Protocol version.
- localservices
Services offered by the node.
- localaddresses
List of local IP addresses.
- timeoffset
Time offset from network.
- connections
Number of active connections.
- relayfee
Minimum relay fee.
- ...
Other network parameters.
See also
mc_get_peer_info for peer details.
Other networking:
mc_add_node(),
mc_get_added_node_info(),
mc_get_peer_info(),
mc_list_stored_nodes(),
mc_ping(),
mc_store_node()
Examples
if (FALSE) { # \dontrun{
net_info <- mc_get_network_info(conn)
cat("Listening port:", net_info$localaddresses[[1]]$port)
} # }