Home

net_peerCount

POST
wss://ethw.nownodes.io/wss/{api_key}

Returns the number of peers currently connected to the client.

Connection URL:

Copied!
wss://ethw.nownodes.io/wss/{{api_key}}

Open the connection, then send the message below as a text frame.

Example:

Copied!
wscat -c 'wss://ethw.nownodes.io/wss/YOUR_API_KEY'
> {"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":74}

Body

application/json
object

Parameters

api_keystringrequiredpath

Your NOWNodes API key.

Response

200OK

A successful response.