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

# jsonrpc net_peerCount | TRON

> TRON API method that returns the number of peers connected to the client. This method provides Ethereum-compatible interface for TRON blockchain.

TRON API method that returns the number of peers currently connected to the client, providing an Ethereum-compatible interface for monitoring TRON network connectivity.

## Parameters

* `jsonrpc` — the JSON-RPC protocol version (always "2.0")
* `method` — the method name (always "net\_peerCount")
* `params` — empty array (no parameters required)
* `id` — request identifier (number or string)

## Response

* `jsonrpc` — the JSON-RPC protocol version ("2.0")
* `id` — the request identifier that matches the request
* `result` — hex-encoded string representing the number of connected peers

## Use case

The `jsonrpc net_peerCount` method is used for:

* Monitoring the number of peers connected to the TRON node for network health assessment
* Implementing node diagnostics and monitoring systems through Web3 interfaces
* Building network analysis tools that track peer connectivity and network participation
* Creating alerts and monitoring dashboards for node operators and infrastructure managers


## OpenAPI

````yaml openapi/tron_node_api/jsonrpc_net_peerCount.json POST /95e61622bf6a8af293978377718e3b77/jsonrpc
openapi: 3.0.0
info:
  title: net_peerCount example
  version: 1.0.0
  description: >-
    This is an API example for net_peerCount, a method to get the number of
    peers connected to the client on the TRON network through
    Ethereum-compatible JSON-RPC interface.
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/jsonrpc:
    post:
      tags:
        - TRON JSON-RPC Operations
      summary: net_peerCount
      operationId: netPeerCount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - id
                - params
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: net_peerCount
                id:
                  type: integer
                  default: 64
                params:
                  type: array
                  default: []
                  items: {}
                  description: Empty array - no parameters required
      responses:
        '200':
          description: Hex-encoded number of connected peers
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string
                    description: >-
                      Hex-encoded string representing the number of connected
                      peers

````