The node-list-connected-peers-json
command in Mintlayer is designed to provide a list of all peers currently connected to your node in a JSON format. This command offers a structured and detailed view of peer information, which is particularly useful for advanced network analysis and troubleshooting.
node-list-connected-peers-json
-h, --help
: Displays help information about the node-list-connected-peers-json
command.Listing Connected Peers in JSON Format:
Executing the command:
node-list-connected-peers-json
will produce an output in JSON format, listing all connected peers with detailed information. For example:
[
{
"peer_id": 1,
"address": "192.168.150.140:13031",
"peer_role": "OutboundBlockRelay",
"ban_score": 0,
"user_agent": "MintlayerCore",
"software_version": "0.2.0",
"ping_wait": null,
"ping_last": 124,
"ping_min": 121
},
{
"peer_id": 2,
"address": "192.168.15.144:13031",
...
},
...
]
Each entry in the array represents a connected peer, detailing their ID, IP address, role, ban score, user agent, software version, and ping statistics.