net_peerCount — Mantle Mainnet
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the connected peer count of the selected RPC node backend, not the total size of the Mantle network.
The net/peer namespace may be disabled by an RPC provider; any returned value describes the node backend, not the whole Mantle network. NOWNodes support has not been tested.
Example response values are illustrative unless explicitly described as protocol constants; they are not authenticated live NOWNodes responses.
Body
JSON-RPC 2.0 request body. Send as HTTP POST to the endpoint root (/).
jsonrpcstring2.0requiredmethodstringnet_peerCountrequiredparamsarrayrequiredJSON-RPC positional parameters; see example and method description.
idintegerrequiredClient-selected JSON-RPC request identifier.
Response
HTTP response containing a JSON-RPC result or a JSON-RPC error object.
JSON-RPC protocol or execution error; may still be delivered with HTTP 200.