Skip to contents

Returns detailed information about each peer currently connected to the node.

Usage

mc_get_peer_info(conn)

Arguments

conn

A connection object created by mc_connect.

Value

A data frame (via rpc_res_to_df) with one row per peer. Common columns include:

addr

Peer address and port.

addrlocal

Local address used for the connection.

services

Services offered.

lastsend

Last time a message was sent.

lastrecv

Last time a message was received.

bytessent

Total bytes sent.

bytesrecv

Total bytes received.

conntime

Connection start time.

pingtime

Ping time (seconds).

version

Peer's version.

subver

Peer's subversion string.

inbound

Whether the peer connected inbound.

Examples

if (FALSE) { # \dontrun{
peers <- mc_get_peer_info(conn)
print(head(peers))
} # }