Documentation ¶
Index ¶
- Variables
- type Cln
- func (c *Cln) CheckInvoicePaid(paymentHash []byte) (bool, error)
- func (c *Cln) Connect() error
- func (c *Cln) ConnectPeer(uri string) error
- func (c *Cln) CreateInvoice(value uint64, preimage []byte, expiry int64, memo string) (*lightning.AddInvoiceResponse, error)
- func (c *Cln) Disconnect() error
- func (c *Cln) GetBalance() (*onchain.Balance, error)
- func (c *Cln) GetBlockHeight() (uint32, error)
- func (c *Cln) GetInfo() (*lightning.LightningInfo, error)
- func (c *Cln) GetTransactions(limit, offset uint64) ([]*onchain.WalletTransaction, error)
- func (c *Cln) GetWalletInfo() onchain.WalletInfo
- func (c *Cln) ListChannels() ([]*lightning.LightningChannel, error)
- func (c *Cln) Name() string
- func (c *Cln) NewAddress() (string, error)
- func (c *Cln) NodeType() lightning.LightningNodeType
- func (c *Cln) PayInvoice(ctx context.Context, invoice string, feeLimit uint, timeoutSeconds uint, ...) (*lightning.PayInvoiceResponse, error)
- func (c *Cln) PaymentStatus(paymentHash []byte) (*lightning.PaymentStatus, error)
- func (c *Cln) Ready() bool
- func (c *Cln) SanityCheck() (string, error)
- func (c *Cln) SendToAddress(address string, amount uint64, satPerVbyte float64, sendAll bool) (string, error)
- func (c *Cln) SetupWallet(info onchain.WalletInfo)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPaymentNotInitiated = errors.New("payment not initialized")
)
Functions ¶
This section is empty.
Types ¶
type Cln ¶
type Cln struct { Host string `long:"cln.host" description:"gRPC host of the CLN daemon"` Port int `long:"cln.port" description:"gRPC port of the CLN daemon"` DataDir string `long:"cln.datadir" description:"Path to the data directory of CLN"` RootCert string `long:"cln.rootcert" description:"Path to the root cert of the CLN gRPC"` PrivateKey string `long:"cln.privatekey" description:"Path to the client key of the CLN gRPC"` CertChain string `long:"cln.certchain" description:"Path to the client cert of the CLN gRPC"` ServerName string `long:"cln.servername" description:"Server name used in the certificate"` Client protos.NodeClient // contains filtered or unexported fields }
func (*Cln) ConnectPeer ¶
func (*Cln) CreateInvoice ¶
func (*Cln) Disconnect ¶
func (*Cln) GetBlockHeight ¶
func (*Cln) GetTransactions ¶
func (c *Cln) GetTransactions(limit, offset uint64) ([]*onchain.WalletTransaction, error)
func (*Cln) GetWalletInfo ¶
func (c *Cln) GetWalletInfo() onchain.WalletInfo
func (*Cln) ListChannels ¶
func (c *Cln) ListChannels() ([]*lightning.LightningChannel, error)
func (*Cln) NewAddress ¶
func (*Cln) NodeType ¶
func (c *Cln) NodeType() lightning.LightningNodeType
func (*Cln) PayInvoice ¶
func (*Cln) PaymentStatus ¶
func (c *Cln) PaymentStatus(paymentHash []byte) (*lightning.PaymentStatus, error)
func (*Cln) SanityCheck ¶
func (*Cln) SendToAddress ¶
func (*Cln) SetupWallet ¶
func (c *Cln) SetupWallet(info onchain.WalletInfo)
Click to show internal directories.
Click to hide internal directories.