Skip to content

net_peerCount

/v1/jsonrpc/:network/net_peerCount

Returns the number of peers currently connected to the client.

REQUEST

GET https://api.backbonecabal.xyz/v1/jsonrpc/:network/net_peerCount

HEADERS

Content-Type: application/json

EXAMPLE

// HTTP GET
curl -G https://api.backbonecabal.xyz/v1/jsonrpc/mainnet/net_peerCount

// HTTP POST
curl https://mainnet.backbonecabal.xyz/ \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}'

// WEBSOCKETS
>wscat -c wss://mainnet.backbonecabal.xyz/ws
>{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}

RESPONSE

RESULT FIELDS

  • PEER COUNT - integer of the number of connected peers.

BODY

{
    jsonrpc: "2.0",
    id: 1,
    result: "0x64"
}
Back to top