POST
/
3997273fc956a67dc6982384500e669e
curl --request POST \
  --url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "net_peerCount"
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}

Ronin API method that returns the number of peers currently connected to the Ronin node. This metric is essential for understanding the node’s connectivity and participation in the network.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • none

Response

  • result — the number of connected peers, encoded as a hexadecimal value. This number reflects how well the node is connected to the rest of the network, which can impact its ability to receive and broadcast transactions and blocks.

Use case

The net_peerCount method is crucial for network administrators and developers who need to monitor their node’s health and connectivity. A higher number of peers indicates good network health and connectivity, while a low number of peers might suggest network issues or isolation from the network.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:net_peerCount

Response

200 - application/json
The number of peers connected to the node
jsonrpc
string
id
integer
result
string