// APIs return the collection of RPC services the matrix package offers.
// NOTE, some of these services probably need to be moved to somewhere else.
APIs return the collection of RPC services the matrix package offers.
NOTE, some of these services probably need to be moved to somewhere else.
// APIs return the collection of RPC services the matrix package offers . // NOTE some of these services probably need to be moved to somewhere else .
func (s *Matrix) APIs() []rpc.API {
	apis := manapi.GetAPIs(s.APIBackend)
	apis = append(apis, s.engine[manversion.VersionAlpha].APIs(s.BlockChain())...)
	return append(apis, []rpc.API{
		{
			Namespace: "man",
			Version:   "1.0",
			Service:   NewPublicMatrixAPI(s),
			Public:    true,
		}, {
			Namespace: "eth",
			Version:   "1.0",
			Service:   NewPublicMatrixAPI(s),
			Public:    true,
		}, {
			Namespace: "man",
			Version:   "1.0",
			Service:   NewPublicMinerAPI(s),
			Public:    true,
		}, {
			Namespace: "eth",
			Version:   "1.0",
			Service:   NewPublicMinerAPI(s),
			Public:    true,
		}, {
			Namespace: "man",
			Version:   "1.0",
			Service:   downloader.NewPublicDownloaderAPI(s.protocolManager.downloader, s.eventMux),
			Public:    true,
		}, {
			Namespace: "eth",
			Version:   "1.0",
			Service:   downloader.NewPublicDownloaderAPI(s.protocolManager.downloader, s.eventMux),
			Public:    true,
		}, {
			Namespace: "miner",
			Version:   "1.0",
			Service:   NewPrivateMinerAPI(s),
			Public:    false,
		}, {
			Namespace: "man",
			Version:   "1.0",
			Service:   filters.NewPublicFilterAPI(s.APIBackend, false),
			Public:    true,
		}, {
			Namespace: "eth",
			Version:   "1.0",
			Service:   filters.NewPublicFilterAPI(s.APIBackend, false),
			Public:    true,
		}, {
			Namespace: "admin",
			Version:   "1.0",
			Service:   NewPrivateAdminAPI(s),
		}, {
			Namespace: "debug",
			Version:   "1.0",
			Service:   NewPublicDebugAPI(s),
			Public:    true,
		}, {
			Namespace: "debug",
			Version:   "1.0",
			Service:   NewPrivateDebugAPI(s.chainConfig, s),
		}, {
			Namespace: "net",
			Version:   "1.0",
			Service:   s.netRPCService,
			Public:    true,
		},
	}...)
}
func ( s * Matrix ) APIs ( ) [ ] rpc . API { apis := manapi . GetAPIs ( s . APIBackend ) apis = append ( apis , s . engine [ manversion . VersionAlpha ] . APIs ( s . BlockChain ( ) ) ... ) return append ( apis , [ ] rpc . API { { Namespace : " " , Version : " " , Service : NewPublicMatrixAPI ( s ) , Public : true , } , { Namespace : " " , Version : " " , Service : NewPublicMatrixAPI ( s ) , Public : true , } , { Namespace : " " , Version : " " , Service : NewPublicMinerAPI ( s ) , Public : true , } , { Namespace : " " , Version : " " , Service : NewPublicMinerAPI ( s ) , Public : true , } , { Namespace : " " , Version : " " , Service : downloader . NewPublicDownloaderAPI ( s . protocolManager . downloader , s . eventMux ) , Public : true , } , { Namespace : " " , Version : " " , Service : downloader . NewPublicDownloaderAPI ( s . protocolManager . downloader , s . eventMux ) , Public : true , } , { Namespace : " " , Version : " " , Service : NewPrivateMinerAPI ( s ) , Public : false , } , { Namespace : " " , Version : " " , Service : filters . NewPublicFilterAPI ( s . APIBackend , false ) , Public : true , } , { Namespace : " " , Version : " " , Service : filters . NewPublicFilterAPI ( s . APIBackend , false ) , Public : true , } , { Namespace : " " , Version : " " , Service : NewPrivateAdminAPI ( s ) , } , { Namespace : " " , Version : " " , Service : NewPublicDebugAPI ( s ) , Public : true , } , { Namespace : " " , Version : " " , Service : NewPrivateDebugAPI ( s . chainConfig , s ) , } , { Namespace : " " , Version : " " , Service : s . netRPCService , Public : true , } , } ... ) }
APIs return the collection of RPC services the matrix package offers.
APIs return the collection of RPC services the matrix package offers .
// Append any APIs exposed explicitly by the consensus engine // Append all the local APIs and return