mirror of
https://github.com/getAlby/lndhub.go.git
synced 2026-01-06 14:35:36 +01:00
17 lines
376 B
Go
17 lines
376 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
"encoding/hex"
|
|
|
|
"github.com/lightningnetwork/lnd/lnrpc"
|
|
)
|
|
|
|
func (svc *LndhubService) GetInfo(ctx context.Context) (*lnrpc.GetInfoResponse, error) {
|
|
return svc.LndClient.GetInfo(ctx, &lnrpc.GetInfoRequest{})
|
|
}
|
|
|
|
func (svc *LndhubService) GetIdentPubKeyHex() string {
|
|
return hex.EncodeToString(svc.IdentityPubkey.SerializeCompressed())
|
|
}
|