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

Method apis

node/node.go:590–617  ·  view source on GitHub ↗

apis returns the collection of RPC descriptors this node offers.

()

Source from the content-addressed store, hash-verified

588
589// apis returns the collection of RPC descriptors this node offers.
590func (n *Node) apis() []rpc.API {
591 return []rpc.API{
592 {
593 Namespace: "admin",
594 Version: "1.0",
595 Service: NewPrivateAdminAPI(n),
596 }, {
597 Namespace: "admin",
598 Version: "1.0",
599 Service: NewPublicAdminAPI(n),
600 Public: true,
601 }, {
602 Namespace: "debug",
603 Version: "1.0",
604 Service: debug.Handler,
605 }, {
606 Namespace: "debug",
607 Version: "1.0",
608 Service: NewPublicDebugAPI(n),
609 Public: true,
610 }, {
611 Namespace: "web3",
612 Version: "1.0",
613 Service: NewPublicWeb3API(n),
614 Public: true,
615 },
616 }
617}

Callers 1

startRPCMethod · 0.95

Calls 4

NewPublicAdminAPIFunction · 0.85
NewPublicWeb3APIFunction · 0.85
NewPrivateAdminAPIFunction · 0.70
NewPublicDebugAPIFunction · 0.70

Tested by

no test coverage detected