mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-21 22:54:48 +01:00
13 lines
258 B
Go
13 lines
258 B
Go
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{})
|
|
}
|