lnd

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const SEND_PAYMENT_TIMEOUT = 50

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) CancelHoldInvoice added in v1.18.0

func (svc *LNDService) CancelHoldInvoice(ctx context.Context, paymentHash string) (err error)

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) ExecuteCustomNodeCommand added in v1.14.0

func (svc *LNDService) ExecuteCustomNodeCommand(ctx context.Context, command *lnclient.CustomNodeCommandRequest) (*lnclient.CustomNodeCommandResponse, error)

func (*LNDService) GetBalances

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

func (*LNDService) GetCustomNodeCommandDefinitions added in v1.14.0

func (svc *LNDService) GetCustomNodeCommandDefinitions() []lnclient.CustomNodeCommandDef

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) ListOnchainTransactions added in v1.17.0

func (svc *LNDService) ListOnchainTransactions(ctx context.Context) ([]lnclient.OnchainTransaction, error)

func (*LNDService) ListPeers

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

func (*LNDService) LookupInvoice

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

func (*LNDService) MakeHoldInvoice added in v1.18.0

func (svc *LNDService) MakeHoldInvoice(ctx context.Context, amountMsat int64, description string, descriptionHash string, expiry int64, paymentHash string, minCltvExpiryDelta *uint64) (transaction *lnclient.Transaction, err error)

func (*LNDService) MakeInvoice

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

func (*LNDService) MakeOffer added in v1.18.0

func (svc *LNDService) MakeOffer(ctx context.Context, description string) (string, 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, amountSat uint64, feeRate *uint64, sendAll bool) (txId string, err error)

func (*LNDService) ResetRouter

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

func (*LNDService) SendKeysend

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

func (*LNDService) SendPaymentSync

func (svc *LNDService) SendPaymentSync(payReq string, amountMsat *uint64) (*lnclient.PayInvoiceResponse, error)

func (*LNDService) SettleHoldInvoice added in v1.18.0

func (svc *LNDService) SettleHoldInvoice(ctx context.Context, preimage string) (err 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