Returns number of peers currently connected to the client. The API credit value for this method is 100

  1. Parameters- This method does not accept any parameters

curl https://Krypc-End Point URL/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":67}'
  1. Returns

    result- The integer of the number of connected peers encoded as hexadecimal

Last updated