lnd

package
v1.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLNDService

func NewLNDService(ctx context.Context, eventPublisher events.EventPublisher, lndAddress, lndCertHex, lndMacaroonHex string) (result lnclient.LNClient, err error)

Types

type LNDService

type LNDService struct {
	// contains filtered or unexported fields
}

func (*LNDService) CloseChannel

func (svc *LNDService) CloseChannel(ctx context.Context, closeChannelRequest *lnclient.CloseChannelRequest) (*lnclient.CloseChannelResponse, error)

func (*LNDService) ConnectPeer

func (svc *LNDService) ConnectPeer(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest) error

func (*LNDService) DisconnectPeer

func (svc *LNDService) DisconnectPeer(ctx context.Context, peerId string) error

func (*LNDService) GetBalances

func (svc *LNDService) GetBalances(ctx context.Context) (*lnclient.BalancesResponse, error)

func (*LNDService) GetInfo

func (svc *LNDService) GetInfo(ctx context.Context) (info *lnclient.NodeInfo, err error)

func (*LNDService) GetLogOutput

func (svc *LNDService) GetLogOutput(ctx context.Context, maxLen int) ([]byte, error)

func (*LNDService) GetNetworkGraph

func (svc *LNDService) GetNetworkGraph(ctx context.Context, nodeIds []string) (lnclient.NetworkGraphResponse, error)

func (*LNDService) GetNewOnchainAddress

func (svc *LNDService) GetNewOnchainAddress(ctx context.Context) (string, error)

func (*LNDService) GetNodeConnectionInfo

func (svc *LNDService) GetNodeConnectionInfo(ctx context.Context) (nodeConnectionInfo *lnclient.NodeConnectionInfo, err error)

func (*LNDService) GetNodeStatus

func (svc *LNDService) GetNodeStatus(ctx context.Context) (nodeStatus *lnclient.NodeStatus, err error)

func (*LNDService) GetOnchainBalance

func (svc *LNDService) GetOnchainBalance(ctx context.Context) (*lnclient.OnchainBalanceResponse, error)

func (*LNDService) GetPubkey added in v1.2.0

func (svc *LNDService) GetPubkey() string

func (*LNDService) GetStorageDir

func (svc *LNDService) GetStorageDir() (string, error)

func (*LNDService) GetSupportedNIP47Methods

func (svc *LNDService) GetSupportedNIP47Methods() []string

func (*LNDService) GetSupportedNIP47NotificationTypes

func (svc *LNDService) GetSupportedNIP47NotificationTypes() []string

func (*LNDService) ListChannels

func (svc *LNDService) ListChannels(ctx context.Context) ([]lnclient.Channel, error)

func (*LNDService) ListPeers

func (svc *LNDService) ListPeers(ctx context.Context) ([]lnclient.PeerDetails, error)

func (*LNDService) ListTransactions

func (svc *LNDService) ListTransactions(ctx context.Context, from, until, limit, offset uint64, unpaid bool, invoiceType string) (transactions []lnclient.Transaction, err error)

FIXME: this always returns limit * 2 transactions and offset is not used correctly

func (*LNDService) LookupInvoice

func (svc *LNDService) LookupInvoice(ctx context.Context, paymentHash string) (transaction *lnclient.Transaction, err error)

func (*LNDService) MakeInvoice

func (svc *LNDService) MakeInvoice(ctx context.Context, amount int64, description string, descriptionHash string, expiry int64) (transaction *lnclient.Transaction, err error)

func (*LNDService) OpenChannel

func (svc *LNDService) OpenChannel(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest) (*lnclient.OpenChannelResponse, error)

func (*LNDService) RedeemOnchainFunds

func (svc *LNDService) RedeemOnchainFunds(ctx context.Context, toAddress string, amount uint64, sendAll bool) (txId string, err error)

func (*LNDService) ResetRouter

func (svc *LNDService) ResetRouter(key string) error

func (*LNDService) SendKeysend

func (svc *LNDService) SendKeysend(ctx context.Context, amount uint64, destination string, custom_records []lnclient.TLVRecord, preimage string) (*lnclient.PayKeysendResponse, error)

func (*LNDService) SendPaymentProbes

func (svc *LNDService) SendPaymentProbes(ctx context.Context, invoice string) error

func (*LNDService) SendPaymentSync

func (svc *LNDService) SendPaymentSync(ctx context.Context, payReq string) (*lnclient.PayInvoiceResponse, error)

func (*LNDService) SendSpontaneousPaymentProbes

func (svc *LNDService) SendSpontaneousPaymentProbes(ctx context.Context, amountMsat uint64, nodeId string) error

func (*LNDService) Shutdown

func (svc *LNDService) Shutdown() error

func (*LNDService) SignMessage

func (svc *LNDService) SignMessage(ctx context.Context, message string) (string, error)

func (*LNDService) UpdateChannel

func (svc *LNDService) UpdateChannel(ctx context.Context, updateChannelRequest *lnclient.UpdateChannelRequest) error

func (*LNDService) UpdateLastWalletSyncRequest

func (svc *LNDService) UpdateLastWalletSyncRequest()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL