# Net\_peerCount

## net\_peerCount

> Returns the number of peers currently connected to the client.<br>

```json
{"openapi":"3.0.0","info":{"title":"Ethereum JSON-RPC","version":"1.0.0"},"servers":[{"url":"https://zksync.nownodes.io"}],"security":[{"api-keyAuth":[]}],"components":{"securitySchemes":{"api-keyAuth":{"type":"apiKey","in":"header","name":"api-key"}}},"paths":{"/":{"post":{"tags":["net_peerCount"],"summary":"net_peerCount","description":"Returns the number of peers currently connected to the client.\n","operationId":"net_peerCount","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params","id"],"properties":{"jsonrpc":{"type":"string"},"method":{"type":"string","enum":["net_peerCount"]},"params":{"type":"array","description":"This method takes no parameters.","maxItems":0},"id":{"type":"integer"}}}}}},"responses":{"200":{"description":"JSON-RPC response with the number of connected peers","content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","id","result"],"properties":{"jsonrpc":{"type":"string"},"id":{"type":"integer"},"result":{"type":"string","description":"The number of peers currently connected, as a hexadecimal string.\n"}}}}}}}}}}}
```
