BXN Documentation
  • Introduction
  • Getting Started
  • Token Info
  • Installation and Setup
    • Installation
    • Setup
    • genesis.json
  • JSON-RPC Server
    • Introduction
    • JSON-RPC Namespaces
      • clique
      • debug
      • eth
      • net
      • txpool
Powered by GitBook
On this page
  • net_listening
  • net_peerCount
  • net_version
  1. JSON-RPC Server
  2. JSON-RPC Namespaces

net

The net API provides insight about the networking aspect of the client.

net_listening

Returns an indication if the node is listening for network connections.

CLIENT
METHOD INVOCATION

Console

net.listening

RPC

{"method": "net_listening"}

net_peerCount

Returns the number of connected peers.

CLIENT
METHOD INVOCATION

Console

net.peerCount

RPC

{"method": "net_peerCount"}

net_version

Returns the devp2p network ID (e.g. 4999 for mainnet, 4777 for testnet).

CLIENT
METHOD INVOCATION

Console

net.version

RPC

{"method": "net_version"}

PreviousethNexttxpool

Last updated 1 year ago