Files
lndhub.go/lib/service/ln.go
Michael Bumann 90a686677f Save invoice destination
And save the node pubkey in the service to make it usable
2022-01-20 15:41:50 +01:00

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())
}