MCPcopy Create free account
hub / github.com/CPChain/chain / NewPublicAdminAPI

Function NewPublicAdminAPI

node/api.go:227–229  ·  view source on GitHub ↗

NewPublicAdminAPI creates a new API definition for the public admin methods of the node itself.

(node *Node)

Source from the content-addressed store, hash-verified

225// NewPublicAdminAPI creates a new API definition for the public admin methods
226// of the node itself.
227func NewPublicAdminAPI(node *Node) *PublicAdminAPI {
228 return &PublicAdminAPI{node: node}
229}
230
231// Peers retrieves all the information we know about each individual peer at the
232// protocol granularity.

Callers 1

apisMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected