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.
Click to show internal directories.
Click to hide internal directories.