> For the complete documentation index, see [llms.txt](https://docs.omniatech.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.omniatech.io/rpc-api-docs/chains/base/standard-json-rpc-api/net_peercount.md).

# net\_peerCount

**Returns number of peers currently connected to the client.**

[**Ethereum.org API Reference**](https://ethereum.org/en/developers/docs/apis/json-rpc/#net_peercount)

**Parameters**

None

**Returns**

`QUANTITY` - integer of the number of connected peers.

## Example

#### Request

```
curl --request POST \
     --url https://endpoints.omniatech.io/v1/RPC_ENDPOINT \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "net_peerCount"
}
'
```

#### Response

```
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x10"
}
```
