Peers

POST /peers/connect

master
Connect to peer.
Request:
1
{
2
"host":"127.0.0.1",
3
"port":"9084"
4
}
Copied!

GET /peers/connected

master
Returns list of all currently connected peers to the node.
Response JSON example:
1
{
2
"peers": [
3
{
4
"address": "52.51.92.182/52.51.92.182:6863",
5
"declaredAddress": "N/A",
6
"peerName": "zx 182",
7
"peerNonce": 183759
8
},
9
{
10
"address": "ec2-52-28-66-217.eu-central-1.compute.amazonaws.com/52.28.66.217:6863",
11
"declaredAddress": "N/A",
12
"peerName": "zx 217",
13
"peerNonce": 1021800
14
}
15
]
16
}
Copied!

GET /peers/blacklisted

master
Returns list of all currently blacklisted peers to the node.

GET /peers/all

master
Returns list of all ever known not blacklisted peers with publicly available declared address.
Last modified 2yr ago