bitxhub/api/grpc/network.go

17 lines
263 B
Go

package grpc
import (
"github.com/meshplus/bitxhub-model/pb"
)
func GetNetworkMeta(cbs *ChainBrokerService) (*pb.Response, error) {
data, err := cbs.api.Network().PeerInfo()
if err != nil {
return nil, err
}
return &pb.Response{
Data: data,
}, nil
}