net

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicAPI

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

PublicAPI is the eth_ prefixed set of APIs in the Web3 JSON-RPC spec.

func NewPublicAPI

func NewPublicAPI(backend backend.BackendI) *PublicAPI

NewPublicAPI creates an instance of the public Net Web3 API.

func (*PublicAPI) Listening

func (s *PublicAPI) Listening() bool

Listening returns if client is actively listening for network connections.

func (*PublicAPI) PeerCount

func (s *PublicAPI) PeerCount() hexutil.Big

PeerCount returns the number of peers currently connected to the client.

func (*PublicAPI) Version

func (s *PublicAPI) Version() (string, error)

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