Skip to main content

net_peerCountByType RPC Method

Returns the number of connected nodes by type and the total number of connected nodes with key/value pairs.

Updated on
Aug 7, 2024

net_peerCountByType RPC Method

Parameters

This method does not accept any parameters

Returns

result
object
The result object with the following fields:
en
string
The number of en peers
pn
string
The number of pn peers
total
string
The total number of peers connected to the network
Request
1
curl https://docs-demo.kaia-kairos.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"jsonrpc":"2.0","method":"net_peerCountByType","params":[],"id":1}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free