network: polkadot
  p2pPort: 30333
  validator: false
  syncMode: fast
  pruning: true
  retainedBlocks: 1024
  logging: info
  telemetry: false
  telemetryURL: wss://telemetry.polkadot.io/submit/0
  prometheus: true
  prometheusPort: 9615
  rpc: true
  rpcPort: 9933
  rpcMethods: unsafe
  ws: true
  wsPort: 9944
    - '*'
    cpu: "4"
    cpuLimit: "8"
    memory: 4Gi
    memoryLimit: 8Gi
    storage: 80Gi
    storageClass: gp2

execute code:

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "net_peerCount", "params":[]}' http://localhost:9933


{"code":-32601,"message":"Method not found"}
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    May 23, 2022 at 14:40

1 Answer 1


This rpc is in frontier, not substrate. If you want this rpc, plz add frontier to your node, follow this guide to integrate frontier.

  • I want to get the peercount on the Polkadot blockchain The following methods can meet my needs for the time being: Start adding running parameters --rpc-method=Unsafe Use system_peers json-rpc method.
    – shiwei ren
    May 26, 2022 at 2:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.