getpeers

Gets a list of nodes that are currently connected/disconnected by this node.

Parameters

None

Result

A list of nodes that the node is currently connected/disconnected from.

Example

Request

curl <your-endpoint> \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{"jsonrpc": "2.0", "method": "getpeers", "params":[],"id": 1}'

Return

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "unconnected": [{
      "address": "47.242.189.120",
      "port": 10333
    }, {
      "address": "47.241.120.144",
      "port": 10333
    }, {
      "address": "47.242.187.243",
      "port": 10333
    }, {
      "address": "35.194.174.233",
      "port": 10333
    }, {
      "address": "13.82.47.32",
      "port": 10333
    }, {
      "address": "54.162.42.1",
      "port": 10333
    }, {
      "address": "195.201.132.93",
      "port": 10333
    }, {
      "address": "45.118.135.36",
      "port": 10333
    }, {
      "address": "18.217.63.9",
      "port": 10333
    }, {
      "address": "157.90.177.39",
      "port": 10333
    }, {
      "address": "50.19.0.146",
      "port": 10333
    }, {
      "address": "51.195.234.88",
      "port": 10333
    }, {
      "address": "95.217.57.165",
      "port": 10333
    }, {
      "address": "54.248.172.252",
      "port": 10333
    }, {
      "address": "18.213.59.58",
      "port": 10333
    }, {
      "address": "3.135.189.111",
      "port": 10333
    }, {
      "address": "52.230.99.53",
      "port": 10333
    }, {
      "address": "85.195.242.196",
      "port": 10333
    }, {
      "address": "85.143.217.63",
      "port": 10333
    }, {
      "address": "20.56.108.81",
      "port": 10333
    }, {
      "address": "20.184.10.14",
      "port": 10333
    }, {
      "address": "52.188.113.77",
      "port": 10333
    }, {
      "address": "3.17.81.11",
      "port": 10333
    }, {
      "address": "20.106.204.3",
      "port": 10333
    }, {
      "address": "46.196.28.143",
      "port": 10333
    }, {
      "address": "34.254.164.29",
      "port": 5001
    }, {
      "address": "159.69.66.100",
      "port": 10333
    }, {
      "address": "47.242.64.203",
      "port": 10333
    }, {
      "address": "64.227.79.101",
      "port": 10333
    }, {
      "address": "176.9.136.67",
      "port": 10333
    }, {
      "address": "88.99.60.84",
      "port": 10333
    }, {
      "address": "65.108.75.224",
      "port": 10333
    }, {
      "address": "178.63.42.89",
      "port": 10333
    }, {
      "address": "44.196.205.13",
      "port": 10333
    }],
    "bad": [],
    "connected": [{
      "address": "47.242.64.203",
      "port": 10333
    }, {
      "address": "20.55.45.37",
      "port": 10333
    }, {
      "address": "144.76.44.220",
      "port": 10333
    }, {
      "address": "18.167.91.48",
      "port": 10333
    }, {
      "address": "88.99.235.240",
      "port": 10333
    }, {
      "address": "13.82.47.32",
      "port": 10333
    }, {
      "address": "85.195.242.196",
      "port": 10333
    }, {
      "address": "35.173.206.203",
      "port": 10333
    }, {
      "address": "20.106.204.3",
      "port": 10333
    }, {
      "address": "13.213.90.168",
      "port": 11333
    }, {
      "address": "52.188.113.77",
      "port": 10333
    }, {
      "address": "65.108.75.224",
      "port": 10333
    }, {
      "address": "18.176.159.241",
      "port": 10333
    }, {
      "address": "18.167.91.48",
      "port": 10333
    }, {
      "address": "52.187.148.64",
      "port": 10333
    }, {
      "address": "3.139.85.208",
      "port": 10333
    }, {
      "address": "18.180.93.129",
      "port": 10333
    }, {
      "address": "172.104.177.210",
      "port": 10333
    }, {
      "address": "54.248.172.252",
      "port": 10333
    }, {
      "address": "47.52.67.29",
      "port": 10333
    }, {
      "address": "65.108.76.56",
      "port": 10333
    }, {
      "address": "95.217.57.165",
      "port": 10333
    }, {
      "address": "20.42.90.44",
      "port": 10333
    }, {
      "address": "20.198.249.57",
      "port": 10333
    }, {
      "address": "3.232.182.181",
      "port": 10333
    }, {
      "address": "116.202.84.164",
      "port": 10333
    }, {
      "address": "54.216.72.229",
      "port": 5001
    }, {
      "address": "52.30.249.19",
      "port": 12484
    }, {
      "address": "18.222.107.38",
      "port": 10333
    }, {
      "address": "85.195.242.196",
      "port": 10335
    }, {
      "address": "13.209.60.161",
      "port": 10333
    }, {
      "address": "52.203.239.236",
      "port": 10333
    }, {
      "address": "8.214.31.128",
      "port": 10333
    }, {
      "address": "20.106.204.3",
      "port": 40333
    }, {
      "address": "3.13.255.178",
      "port": 10333
    }, {
      "address": "135.181.38.24",
      "port": 10333
    }, {
      "address": "20.56.108.81",
      "port": 10333
    }]
  }
}
Language
Click Try It! to start a request and see the response here!