greenlight

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DEVICE_CREDENTIALS_KEY = "GreenlightCreds"

Variables

This section is empty.

Functions

func NewGreenlightService

func NewGreenlightService(cfg config.Config, mnemonic, inviteCode, workDir, encryptionKey string) (result lnclient.LNClient, err error)

Types

type GreenlightService

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

func (*GreenlightService) CloseChannel

func (gs *GreenlightService) CloseChannel(ctx context.Context, closeChannelRequest *lnclient.CloseChannelRequest) (*lnclient.CloseChannelResponse, error)

func (*GreenlightService) ConnectPeer

func (gs *GreenlightService) ConnectPeer(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest) error

func (*GreenlightService) DisconnectPeer

func (gs *GreenlightService) DisconnectPeer(ctx context.Context, peerId string) error

func (*GreenlightService) GetBalances

func (*GreenlightService) GetInfo

func (gs *GreenlightService) GetInfo(ctx context.Context) (info *lnclient.NodeInfo, err error)

func (*GreenlightService) GetLogOutput

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

func (*GreenlightService) GetNetworkGraph

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

func (*GreenlightService) GetNewOnchainAddress

func (gs *GreenlightService) GetNewOnchainAddress(ctx context.Context) (string, error)

func (*GreenlightService) GetNodeConnectionInfo

func (gs *GreenlightService) GetNodeConnectionInfo(ctx context.Context) (nodeConnectionInfo *lnclient.NodeConnectionInfo, err error)

func (*GreenlightService) GetNodeStatus

func (gs *GreenlightService) GetNodeStatus(ctx context.Context) (nodeStatus *lnclient.NodeStatus, err error)

func (*GreenlightService) GetOnchainBalance

func (gs *GreenlightService) GetOnchainBalance(ctx context.Context) (*lnclient.OnchainBalanceResponse, error)

func (*GreenlightService) GetPubkey added in v1.2.0

func (gs *GreenlightService) GetPubkey() string

func (*GreenlightService) GetStorageDir

func (gs *GreenlightService) GetStorageDir() (string, error)

func (*GreenlightService) GetSupportedNIP47Methods

func (gs *GreenlightService) GetSupportedNIP47Methods() []string

func (*GreenlightService) GetSupportedNIP47NotificationTypes

func (gs *GreenlightService) GetSupportedNIP47NotificationTypes() []string

func (*GreenlightService) ListChannels

func (gs *GreenlightService) ListChannels(ctx context.Context) ([]lnclient.Channel, error)

func (*GreenlightService) ListPeers

func (gs *GreenlightService) ListPeers(ctx context.Context) ([]lnclient.PeerDetails, error)

func (*GreenlightService) ListTransactions

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

func (*GreenlightService) LookupInvoice

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

func (*GreenlightService) MakeInvoice

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

func (*GreenlightService) OpenChannel

func (gs *GreenlightService) OpenChannel(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest) (*lnclient.OpenChannelResponse, error)

func (*GreenlightService) RedeemOnchainFunds

func (gs *GreenlightService) RedeemOnchainFunds(ctx context.Context, toAddress string, amount uint64, sendAll bool) (string, error)

func (*GreenlightService) ResetRouter

func (gs *GreenlightService) ResetRouter(key string) error

func (*GreenlightService) SendKeysend

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

func (*GreenlightService) SendPaymentProbes

func (gs *GreenlightService) SendPaymentProbes(ctx context.Context, invoice string) error

func (*GreenlightService) SendPaymentSync

func (gs *GreenlightService) SendPaymentSync(ctx context.Context, payReq string) (*lnclient.PayInvoiceResponse, error)

func (*GreenlightService) SendSpontaneousPaymentProbes

func (gs *GreenlightService) SendSpontaneousPaymentProbes(ctx context.Context, amountMsat uint64, nodeId string) error

func (*GreenlightService) Shutdown

func (gs *GreenlightService) Shutdown() error

func (*GreenlightService) SignMessage

func (gs *GreenlightService) SignMessage(ctx context.Context, message string) (string, error)

func (*GreenlightService) UpdateChannel

func (gs *GreenlightService) UpdateChannel(ctx context.Context, updateChannelRequest *lnclient.UpdateChannelRequest) error

func (*GreenlightService) UpdateLastWalletSyncRequest

func (gs *GreenlightService) UpdateLastWalletSyncRequest()

Jump to

Keyboard shortcuts

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