API Referencenet_peerCountVersion: Nextnet_peerCountReturns the number of peers currently connected to the client.Parameters (by position)This method does not accept any parameters.ResultPeer count stringhex encoded unsigned integerMatch pattern: ^0x(0|[1-9a-f][0-9a-f]*)$Examplesnet_peerCount exampleRequest{ "params": []}Response"0x2"RequestCopy ▾Server URL:Send{ "jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1 }