Skip to contents

Returns comprehensive information about the node's status, including version, protocol, network connections, balance, and mining status.

Usage

mc_get_info(conn)

Arguments

conn

A connection object created by mc_connect.

Value

A list with node information, typically including:

version

Node software version.

protocolversion

Protocol version.

walletversion

Wallet version.

balance

Node's wallet balance.

blocks

Current block height.

timeoffset

Time offset from network.

connections

Number of active connections.

...

Other status details.

See also

mc_get_blockchain_info for blockchain-level info, mc_get_runtime_params for runtime settings.

Other node information: mc_get_init_status()

Examples

if (FALSE) { # \dontrun{
info <- mc_get_info(conn)
cat("Balance:", info$balance, "\n")
cat("Blocks:", info$blocks, "\n")
} # }