Returns an array of all peer connection statuses.
{ }
[- {
- "peer": "string",
- "connecting": true,
- "syncing": true,
- "last_handshake": {
- "network_version": 0,
- "chain_id": "string",
- "node_id": "string",
- "key": "string",
- "time": "string",
- "token": "string",
- "sig": "string",
- "p2p_address": "string",
- "last_irreversible_block_num": 0,
- "last_irreversible_block_id": "string",
- "head_num": 0,
- "head_id": "string",
- "os": "string",
- "agent": "string",
- "generation": 0
}
}
]
Initiate a connection to a specified peer.
endpoint required | string the endpoint to connect to expressed as either IP address or URL |
{- "endpoint": "string"
}
"string"
Initiate disconnection from a specified peer.
endpoint required | string the endpoint to disconnect from, expressed as either IP address or URL |
{- "endpoint": "string"
}
"string"
Retrieves the connection status for a specified peer.
endpoint required | string the endpoint to get the status for, to expressed as either IP address or URL |
{- "endpoint": "string"
}
{- "peer": "string",
- "connecting": true,
- "syncing": true,
- "last_handshake": {
- "network_version": 0,
- "chain_id": "string",
- "node_id": "string",
- "key": "string",
- "time": "string",
- "token": "string",
- "sig": "string",
- "p2p_address": "string",
- "last_irreversible_block_num": 0,
- "last_irreversible_block_id": "string",
- "head_num": 0,
- "head_id": "string",
- "os": "string",
- "agent": "string",
- "generation": 0
}
}