net

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package net implements RPC API bindings for methods in the "net" namespace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listening

func Listening() w3types.RPCCallerFactory[bool]

Listening returns whether the client is actively listening for network connections.

func PeerCount

func PeerCount() w3types.RPCCallerFactory[int]

PeerCount returns the number of peers connected to the node.

func Version

func Version() w3types.RPCCallerFactory[int]

Version returns the network ID (e.g. 1 for mainnet).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL