net
net_peerCount
Returns the number of peers currently connected to the node.
Returns the number of peers currently connected to the node.
Parameters
| # | Type | Description |
|---|---|---|
| — | — | No parameters required. |
Returns
| Type | Description |
|---|---|
string | Hex-encoded number of connected peers. |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "net_peerCount",
"params": [],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x27"
}
TRY IT
Notes
- The result is hex-encoded.
"0x27"= 39 peers in decimal. - A healthy node typically has 20-50 peers. A very low count may indicate network connectivity issues.
