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.

net_peerCount

Returns the number of connected peers.

net_version

Returns the devp2p network ID (e.g. 1 for mainnet, 5 for goerli).

Last updated