Peer Connection Healthcheck

peer_connection_healthcheckAPI-v2peer_connection_healthcheck

The peer_connection_healthcheck method checks if a peer is connected to the KDF network using the currently configured netid.

Request Parameters

Parameter Type Required Description
peer_address string The peer address to check for connectivity

Response Parameters

Parameter Type Required Description
result boolean True if peer found connected to network

📌 Examples

POST Peer Connection Healthcheck peer_connection_healthcheck
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "peer_connection_healthcheck",
  "mmrpc": "2.0",
  "params": {
    "peer_address": "12D3KooWCcjBQ3kG3BzjVwuZqGDL2YxXik6SCDv2YAHj4E54NiAy"
  }
}
Show Peer Connection Healthcheck Response

Response (peer found)

{
    "mmrpc": "2.0",
    "result": true,
    "id": null
}

Response (peer not found)

{
    "mmrpc": "2.0",
    "result": false,
    "id": null
}