Files
lndhub.go/lib/service/ln.go
2022-05-17 11:30:36 +02:00

21 lines
590 B
Go

package service
import (
"context"
"github.com/lightningnetwork/lnd/lnrpc"
)
//https://github.com/hsjoberg/blixt-wallet/blob/9fcc56a7dc25237bc14b85e6490adb9e044c009c/src/utils/constants.ts#L5
const (
KEYSEND_CUSTOM_RECORD = 5482373484
TLV_WHATSAT_MESSAGE = 34349334
TLV_RECORD_NAME = 128100
TLV_WALLET_ID = 696969 //cfr. https://github.com/satoshisstream/satoshis.stream/blob/main/TLV_registry.md#field-696969---lnpay
)
func (svc *LndhubService) GetInfo(ctx context.Context) (*lnrpc.GetInfoResponse, error) {
return svc.LndClient.GetInfo(ctx, &lnrpc.GetInfoRequest{})
}