Skip to contents

Returns details about the node's network configuration, including listening port, local addresses, and network‑related flags.

Usage

mc_get_network_info(conn)

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.

Examples

if (FALSE) { # \dontrun{
net_info <- mc_get_network_info(conn)
cat("Listening port:", net_info$localaddresses[[1]]$port)
} # }