net
| Entity | Version |
| Source | 1.13.0-stable/generated-at:2026-09-14T07:51:25-06:00 |
| OpenRPC | 1.2.6 |
net_listening
Listening returns an indication if the node is listening for network connections.
Params (0)
None
Result
bool
Client Method Invocation Examples
Source code
| func (s *NetAPI) Listening() bool {
return true
}// Listening returns an indication if the node is listening for network connections.
|
View on GitHub →
net_peerCount
PeerCount returns the number of connected peers
Params (0)
None
Result
hexutil.Uint
Client Method Invocation Examples
Source code
| func (s *NetAPI) PeerCount() hexutil.Uint {
return hexutil.Uint(s.net.PeerCount())
}// PeerCount returns the number of connected peers
|
View on GitHub →
net_version
Version returns the current ethereum protocol version.
Params (0)
None
Result
string
Client Method Invocation Examples
Source code
| func (s *NetAPI) Version() string {
return fmt.Sprintf("%d", s.networkVersion)
}// Version returns the current ethereum protocol version.
|
View on GitHub →