Peer Connection Healthcheck
API-v2peer_connection_healthcheck
The peer_connection_healthcheck
method checks if a peer is connected to the KDF network using the currently configured netid
.
Parameter* = required | Type | Description |
---|---|---|
peer_address* | string | The peer address to check for connectivity |
Parameter* = required | Type | Description |
---|---|---|
result* | boolean | True if peer found connected to network |
Peer Connection Healthcheck
POST
peer_connection_healthcheck{
"userpass": "RPC_UserP@SSW0RD",
"method": "peer_connection_healthcheck",
"mmrpc": "2.0",
"params": {
"peer_address": "12D3KooWCcjBQ3kG3BzjVwuZqGDL2YxXik6SCDv2YAHj4E54NiAy"
}
}
{
"mmrpc": "2.0",
"result": true,
"id": null
}
{
"mmrpc": "2.0",
"result": false,
"id": null
}