Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Invoice ¶
type Invoice struct { PaymentHash string `json:"payment_hash"` PaymentRequest string `json:"payment_request"` Settled bool `json:"settled"` }
thanks https://github.com/philippgille/ln-paywall/ Invoice is a Lightning Network invoice and contains the typical invoice string and the payment hash.
type LNDclient ¶
type LNDclient struct {
// contains filtered or unexported fields
}
func NewLNDclient ¶
func NewLNDclient(lndOptions LNDoptions) (LNDclient, error)
func (LNDclient) AddInvoice ¶
func (c LNDclient) AddInvoice(value int64, memo string, descriptionHash []byte, private bool) (Invoice, error)
AddInvoice generates an invoice with the given price and memo.
func (LNDclient) GetInvoice ¶
GetInvoice takes an invoice ID and returns the invoice details including settlement details An error is returned if no corresponding invoice was found.
func (LNDclient) NewAddress ¶
NewAddress gets the next BTC onchain address.
Click to show internal directories.
Click to hide internal directories.