Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) AddInvoice(amount int64, preimage []byte) (*lnrpc.AddInvoiceResponse, error)
- func (c *Client) ChannelByCounterparty(pub *crypto.PublicKey) (*lnrpc.Channel, error)
- func (c *Client) ConnectPeer(pubkey *crypto.PublicKey, host string) error
- func (c *Client) GetInfo() (*lnrpc.GetInfoResponse, error)
- func (c *Client) HasPeer(pubkey *crypto.PublicKey) (bool, error)
- func (c *Client) PayInvoice(paymentRequest string) (*lnrpc.SendResponse, error)
- type ClientConfig
Constants ¶
View Source
const InvoiceExpiry = 3600
View Source
const InvoiceMemo = "Drawbridge Payment (v0)"
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 *ClientConfig) (*Client, error)
func (*Client) AddInvoice ¶
func (*Client) ChannelByCounterparty ¶
func (*Client) ConnectPeer ¶
func (*Client) PayInvoice ¶
func (c *Client) PayInvoice(paymentRequest string) (*lnrpc.SendResponse, error)
Click to show internal directories.
Click to hide internal directories.