PeerCount

Returns number of peers currently connected to the client.

Parameters

none

Returns

  • QUANTITY - integer of the number of connected peers.
POSThttps://tomo.nownodes.io/peerCount
Body
jsonrpc*string
method*string
params*array of string
id*integer (int32)
Response

Successful Operation

Request
const response = await fetch('https://tomo.nownodes.io/peerCount', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "jsonrpc": "2.0",
      "method": "net_peerCount",
      "params": [],
      "id": 74
    }),
});
const data = await response.json();