mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-23 07:35:04 +01:00
Add missing ln service
This commit is contained in:
12
lib/service/ln.go
Normal file
12
lib/service/ln.go
Normal file
@@ -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{})
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user