net

package
v4.2.8-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIName = "net"

APIName is the namespace for the watcher's eth api

View Source
const APIVersion = "0.0.1"

APIVersion is the version of the watcher's eth api

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicNetAPI

type PublicNetAPI struct {
	// contains filtered or unexported fields
}

PublicNetAPI is the net nampespace API

func NewPublicNetAPI

func NewPublicNetAPI(networkID uint64, client *rpc.Client) *PublicNetAPI

NewPublicNetAPI creates a new PublicNetAPI with the provided underlying Backend

func (*PublicNetAPI) Listening

func (pna *PublicNetAPI) Listening() bool

Listening returns an indication if the node is listening for network connections.

func (*PublicNetAPI) PeerCount

func (pna *PublicNetAPI) PeerCount() hexutil.Uint

PeerCount returns the number of connected peers

func (*PublicNetAPI) Version

func (pna *PublicNetAPI) Version() string

Version returns the current ethereum protocol version.

Jump to

Keyboard shortcuts

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