lnd

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientName = "lnd"

	DefaultHostname  = "localhost"
	DefaultPort      = 10009
	DefaultTLS       = "~/.lncm/tls.cert"
	DefaultInvoice   = "~/.lncm/invoice.macaroon"
	DefaultReadOnly  = "~/.lncm/readonly.macaroon"
	DefaultKillCount = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InvoiceMonitor added in v0.5.0

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

func NewNotifier added in v0.5.0

func NewNotifier(client lnrpc.LightningClient) (InvoiceMonitor, error)

func (InvoiceMonitor) Status added in v0.5.0

func (im InvoiceMonitor) Status(ctx context.Context, hash string) (*lnrpc.Invoice, error)

type Lnd

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

func New

func New(conf common.Lnd) (lnd Lnd)

func (Lnd) History

func (lnd Lnd) History(ctx context.Context) (invoices common.Invoices, err error)

func (Lnd) Info

func (lnd Lnd) Info(ctx context.Context) (info common.Info, err error)

func (Lnd) NewAddress added in v0.5.0

func (lnd Lnd) NewAddress(ctx context.Context, bech32 bool) (address string, err error)

func (Lnd) NewInvoice

func (lnd Lnd) NewInvoice(ctx context.Context, amount int64, desc string) (invoice, hash string, err error)

func (Lnd) Status

func (lnd Lnd) Status(ctx context.Context, hash string) (s common.Status, err error)

func (Lnd) StatusWait

func (lnd Lnd) StatusWait(ctx context.Context, hash string) (s common.Status, err error)

Jump to

Keyboard shortcuts

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