> ## Documentation Index
> Fetch the complete documentation index at: https://docs.parallaxprotocol.org/llms.txt
> Use this file to discover all available pages before exploring further.

# 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. 2110 for mainnet, 2111 for testnet).

| CLIENT | METHOD INVOCATION |
| - | - |
| Console | net.version |
| RPC | \{"method": "net\_version"} |

***

*Partly adapted from [net Namespace](https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-net) in the go-ethereum documentation, © The go-ethereum Authors. See the [third-party notices](https://github.com/ParallaxProtocol/parallax-docs/blob/main/THIRD_PARTY_NOTICES.md).*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.