diff --git a/lib/service/ln.go b/lib/service/ln.go new file mode 100644 index 0000000..f8a08fa --- /dev/null +++ b/lib/service/ln.go @@ -0,0 +1,12 @@ +package service + +import ( + "context" + + "github.com/lightningnetwork/lnd/lnrpc" +) + +func (svc *LndhubService) GetInfo(ctx context.Context) (*lnrpc.GetInfoResponse, error) { + lndClient := *svc.LndClient + return lndClient.GetInfo(ctx, &lnrpc.GetInfoRequest{}) +}