> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# net_peerCount

> Returns number of peers currenly connected to the client.

### Parameters

**chainId** `string` *required* (default: 100)

Unique identifier for a blockchain network.

**id** `number` *required* (default: 1)

Request identifier used to match responses.

**jsonrpc** `string` *required* (default: 2.0)

JSON-RPC version.

**method** `string` *required* (default: net\_peerCount)

JSON-RPC method name.

This method does not require any parameters.

### Returns

**result** `integer`

Quantity - Integer of the number of connected peers Example: `"0x2"`.

```bash Curl theme={null}
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=100 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "net_peerCount",
    "params": []
  }'
```

```json Success theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x2"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.