Skip to main content

net_peerCount

Returns number of peers currently connected to Flow EVM Gateway client.

Parameters#

This method accepts no parameters.

Request#

{
"jsonrpc": "2.0",
"method": "net_peerCount",
"params": [],
"id": 1
}

Returns#

TypeDescription
QUANTITYNumber of connected peers (hexadecimal)

Code Examples#

curl -X POST https://api-flow-evm-gateway-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "net_peerCount",
"params": [],
"id": 1
}'