Documentation ¶
Overview ¶
Lightning Network primitives.
Index ¶
- type Channel
- type ChannelID
- type Channels
- type Edge
- type FeePPM
- type Forward
- type Graph
- type Info
- type Invoice
- type LndClient
- func (l LndClient) AddInvoice(ctx context.Context, amount Satoshi) (Invoice, error)
- func (l LndClient) DescribeGraph(ctx context.Context) (*Graph, error)
- func (l LndClient) ForwardingHistory(ctx context.Context, since time.Time) ([]Forward, error)
- func (l LndClient) GetChannel(ctx context.Context, channelID ChannelID) (Channel, error)
- func (l LndClient) GetInfo(ctx context.Context) (*Info, error)
- func (l LndClient) ListChannels(ctx context.Context) (Channels, error)
- func (l LndClient) SendPayment(ctx context.Context, invoice Invoice, outChannelID ChannelID, ...) (Satoshi, error)
- func (l LndClient) SetFees(ctx context.Context, channelID ChannelID, fee FeePPM, maxHTLC MilliSatoshi) error
- func (l LndClient) SubscribeChannelUpdates(ctx context.Context) (<-chan Channels, <-chan error, error)
- type MilliSatoshi
- type Node
- type PubKey
- type Satoshi
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { Edge ChannelID ChannelID LocalBalance Satoshi LocalFee FeePPM RemoteBalance Satoshi RemoteNode Node Private bool }
Channel between local and remote node.
type LndClient ¶ added in v0.9.2
type LndClient struct {
// contains filtered or unexported fields
}
LndClient client backed by LND node.
func NewLndClient ¶ added in v0.9.2
func NewLndClient(s *lndclient.GrpcLndServices, network string) LndClient
NewLndClient backed by a single LND lightning node.
func (LndClient) AddInvoice ¶ added in v0.9.2
AddInvoice of amount.
func (LndClient) DescribeGraph ¶ added in v0.9.2
DescribeGraph of the Lightning Network.
func (LndClient) ForwardingHistory ¶ added in v0.9.2
ForwardingHistory of node since the time give, capped at 50,000 events.
func (LndClient) GetChannel ¶ added in v0.9.2
GetChannel with ID.
func (LndClient) ListChannels ¶ added in v0.9.2
ListChannels of local node.
func (LndClient) SendPayment ¶ added in v0.9.2
func (l LndClient) SendPayment(ctx context.Context, invoice Invoice, outChannelID ChannelID, lastHopPubKey PubKey, maxFee FeePPM) (Satoshi, error)
SendPayment to pay for invoice.
Click to show internal directories.
Click to hide internal directories.