cashu

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCashuService

func NewCashuService(workDir string, mintUrl string) (result lnclient.LNClient, err error)

Types

type CashuService

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

func (*CashuService) CloseChannel

func (cs *CashuService) CloseChannel(ctx context.Context, closeChannelRequest *lnclient.CloseChannelRequest) (*lnclient.CloseChannelResponse, error)

func (*CashuService) ConnectPeer

func (cs *CashuService) ConnectPeer(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest) error

func (*CashuService) DisconnectPeer

func (cs *CashuService) DisconnectPeer(ctx context.Context, peerId string) error

func (*CashuService) GetBalances

func (cs *CashuService) GetBalances(ctx context.Context) (*lnclient.BalancesResponse, error)

func (*CashuService) GetInfo

func (cs *CashuService) GetInfo(ctx context.Context) (info *lnclient.NodeInfo, err error)

func (*CashuService) GetLogOutput

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

func (*CashuService) GetNetworkGraph

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

func (*CashuService) GetNewOnchainAddress

func (cs *CashuService) GetNewOnchainAddress(ctx context.Context) (string, error)

func (*CashuService) GetNodeConnectionInfo

func (cs *CashuService) GetNodeConnectionInfo(ctx context.Context) (nodeConnectionInfo *lnclient.NodeConnectionInfo, err error)

func (*CashuService) GetNodeStatus

func (cs *CashuService) GetNodeStatus(ctx context.Context) (nodeStatus *lnclient.NodeStatus, err error)

func (*CashuService) GetOnchainBalance

func (cs *CashuService) GetOnchainBalance(ctx context.Context) (*lnclient.OnchainBalanceResponse, error)

func (*CashuService) GetPubkey added in v1.2.0

func (svc *CashuService) GetPubkey() string

func (*CashuService) GetStorageDir

func (cs *CashuService) GetStorageDir() (string, error)

func (*CashuService) GetSupportedNIP47Methods

func (cs *CashuService) GetSupportedNIP47Methods() []string

func (*CashuService) GetSupportedNIP47NotificationTypes

func (cs *CashuService) GetSupportedNIP47NotificationTypes() []string

func (*CashuService) ListChannels

func (cs *CashuService) ListChannels(ctx context.Context) ([]lnclient.Channel, error)

func (*CashuService) ListPeers

func (cs *CashuService) ListPeers(ctx context.Context) ([]lnclient.PeerDetails, error)

func (*CashuService) ListTransactions

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

func (*CashuService) LookupInvoice

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

func (*CashuService) MakeInvoice

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

func (*CashuService) OpenChannel

func (cs *CashuService) OpenChannel(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest) (*lnclient.OpenChannelResponse, error)

func (*CashuService) RedeemOnchainFunds

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

func (*CashuService) ResetRouter

func (cs *CashuService) ResetRouter(key string) error

func (*CashuService) SendKeysend

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

func (*CashuService) SendPaymentProbes

func (cs *CashuService) SendPaymentProbes(ctx context.Context, invoice string) error

func (*CashuService) SendPaymentSync

func (cs *CashuService) SendPaymentSync(ctx context.Context, invoice string) (response *lnclient.PayInvoiceResponse, err error)

func (*CashuService) SendSpontaneousPaymentProbes

func (cs *CashuService) SendSpontaneousPaymentProbes(ctx context.Context, amountMsat uint64, nodeId string) error

func (*CashuService) Shutdown

func (cs *CashuService) Shutdown() error

func (*CashuService) SignMessage

func (cs *CashuService) SignMessage(ctx context.Context, message string) (string, error)

func (*CashuService) UpdateChannel

func (cs *CashuService) UpdateChannel(ctx context.Context, updateChannelRequest *lnclient.UpdateChannelRequest) error

func (*CashuService) UpdateLastWalletSyncRequest

func (cs *CashuService) UpdateLastWalletSyncRequest()

Jump to

Keyboard shortcuts

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