Share your GetBlock experience with other devs and get 5M RPCs

banner image

Last updated on January 1, 1970

3 min read

Method getpeers NEO (NEO)
connect with JSON-RPC protocol

getpeers

info-circle-fill

Gets a list of nodes that the node is currently connected/disconnectedfrom.Response Description\- Unconnected Nodes that are not currently connected.\- Bad Nodes that are no longer connected.\- Connected Nodes to which you are currently connected.

Parameters

-

Request

curl --location --request POST 'https://neo.getblock.io' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "getpeers",
"params": [],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "bad": [],
        "connected": [
            {
                "address": "13.251.207.0",
                "port": 10333
            },
            {
                "address": "104.43.136.59",
                "port": 10333
            },
            {
                "address": "13.82.50.205",
                "port": 10333
            }
        ],
        "unconnected": [
            {
                "address": "144.76.0.7",
                "port": 10333
            },
            {
                "address": "91.149.225.131",
                "port": 10333
            },
            {
                "address": "67.189.155.247",
                "port": 10333
            }
        ]
    }
}
banner icon

Start Building with GetBlock RPCs for Free