apis returns the collection of RPC descriptors this node offers.
()
| 588 | |
| 589 | // apis returns the collection of RPC descriptors this node offers. |
| 590 | func (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 | } |
no test coverage detected