Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublicNetAPI ¶
type PublicNetAPI struct { Metrics map[string]*monitor.RpcMetrics // contains filtered or unexported fields }
PublicNetAPI is the eth_ prefixed set of APIs in the Web3 JSON-RPC spec.
func NewAPI ¶
func NewAPI(clientCtx context.CLIContext, log log.Logger) *PublicNetAPI
NewAPI creates an instance of the public Net Web3 API.
func (*PublicNetAPI) Listening ¶ added in v1.1.9
func (api *PublicNetAPI) Listening() bool
Listening returns if client is actively listening for network connections.
func (*PublicNetAPI) PeerCount ¶ added in v1.1.9
func (api *PublicNetAPI) PeerCount() int
PeerCount returns the number of peers currently connected to the client.
func (*PublicNetAPI) Version ¶
func (api *PublicNetAPI) Version() string
Version returns the current ethereum protocol version.
Click to show internal directories.
Click to hide internal directories.