lndc

package
v0.0.0-...-8e43caa Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(config *Config) (*Client, error)

func (*Client) AddInvoice

func (client *Client) AddInvoice(amt int64) (*bdb.Invoice, error)

func (*Client) BlockHeight

func (client *Client) BlockHeight() (bdb.BlockHeight, error)

func (*Client) Channels

func (client *Client) Channels() (bdb.ChannelMap, error)

func (*Client) Graph

func (client *Client) Graph() (*bdb.Graph, error)

Graph returns the local Lightning network graph consisting of a node and edge map

func (*Client) IdentitiyPubKey

func (client *Client) IdentitiyPubKey() (bdb.PubKey, error)

func (*Client) SendToRoute

func (client *Client) SendToRoute(req *lnrpc.SendToRouteRequest) (*bdb.Payment, error)

func (*Client) Start

func (client *Client) Start() error

func (*Client) Stop

func (client *Client) Stop() error

type Config

type Config struct {
	TlsCertPath  string
	RpcServer    string
	MacaroonPath string
}

Jump to

Keyboard shortcuts

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