Documentation ¶
Index ¶
- func NewPhoenixService(address string, authorization string) (result lnclient.LNClient, err error)
- type BalanceResponse
- type InfoResponse
- type InvoiceResponse
- type MakeInvoiceResponse
- type OutgoingPaymentResponse
- type PayResponse
- type PhoenixService
- func (svc *PhoenixService) CloseChannel(ctx context.Context, closeChannelRequest *lnclient.CloseChannelRequest) (*lnclient.CloseChannelResponse, error)
- func (svc *PhoenixService) ConnectPeer(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest) error
- func (svc *PhoenixService) DisconnectPeer(ctx context.Context, peerId string) error
- func (svc *PhoenixService) GetBalance(ctx context.Context) (balance int64, err error)
- func (svc *PhoenixService) GetBalances(ctx context.Context) (*lnclient.BalancesResponse, error)
- func (svc *PhoenixService) GetInfo(ctx context.Context) (info *lnclient.NodeInfo, err error)
- func (svc *PhoenixService) GetLogOutput(ctx context.Context, maxLen int) ([]byte, error)
- func (svc *PhoenixService) GetNetworkGraph(nodeIds []string) (lnclient.NetworkGraphResponse, error)
- func (svc *PhoenixService) GetNewOnchainAddress(ctx context.Context) (string, error)
- func (svc *PhoenixService) GetNodeConnectionInfo(ctx context.Context) (nodeConnectionInfo *lnclient.NodeConnectionInfo, err error)
- func (svc *PhoenixService) GetNodeStatus(ctx context.Context) (nodeStatus *lnclient.NodeStatus, err error)
- func (svc *PhoenixService) GetOnchainBalance(ctx context.Context) (*lnclient.OnchainBalanceResponse, error)
- func (svc *PhoenixService) GetStorageDir() (string, error)
- func (svc *PhoenixService) GetSupportedNIP47Methods() []string
- func (svc *PhoenixService) GetSupportedNIP47NotificationTypes() []string
- func (svc *PhoenixService) ListChannels(ctx context.Context) ([]lnclient.Channel, error)
- func (svc *PhoenixService) ListPeers(ctx context.Context) ([]lnclient.PeerDetails, error)
- func (svc *PhoenixService) ListTransactions(ctx context.Context, from, until, limit, offset uint64, unpaid bool, ...) (transactions []lnclient.Transaction, err error)
- func (svc *PhoenixService) LookupInvoice(ctx context.Context, paymentHash string) (transaction *lnclient.Transaction, err error)
- func (svc *PhoenixService) MakeInvoice(ctx context.Context, amount int64, description string, descriptionHash string, ...) (transaction *lnclient.Transaction, err error)
- func (svc *PhoenixService) OpenChannel(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest) (*lnclient.OpenChannelResponse, error)
- func (svc *PhoenixService) RedeemOnchainFunds(ctx context.Context, toAddress string) (txId string, err error)
- func (svc *PhoenixService) ResetRouter(key string) error
- func (svc *PhoenixService) SendKeysend(ctx context.Context, amount uint64, destination, preimage string, ...) (respPreimage string, err error)
- func (svc *PhoenixService) SendPaymentProbes(ctx context.Context, invoice string) error
- func (svc *PhoenixService) SendPaymentSync(ctx context.Context, payReq string) (*lnclient.PayInvoiceResponse, error)
- func (svc *PhoenixService) SendSpontaneousPaymentProbes(ctx context.Context, amountMsat uint64, nodeId string) error
- func (svc *PhoenixService) Shutdown() error
- func (svc *PhoenixService) SignMessage(ctx context.Context, message string) (string, error)
- func (svc *PhoenixService) UpdateChannel(ctx context.Context, updateChannelRequest *lnclient.UpdateChannelRequest) error
- func (svc *PhoenixService) UpdateLastWalletSyncRequest()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BalanceResponse ¶
type InfoResponse ¶
type InfoResponse struct {
NodeId string `json:"nodeId"`
}
type InvoiceResponse ¶
type InvoiceResponse struct { PaymentHash string `json:"paymentHash"` Preimage string `json:"preimage"` ExternalId string `json:"externalId"` Description string `json:"description"` Invoice string `json:"invoice"` IsPaid bool `json:"isPaid"` ReceivedSat int64 `json:"receivedSat"` Fees int64 `json:"fees"` CompletedAt int64 `json:"completedAt"` CreatedAt int64 `json:"createdAt"` }
type MakeInvoiceResponse ¶
type OutgoingPaymentResponse ¶
type PayResponse ¶
type PhoenixService ¶
func (*PhoenixService) CloseChannel ¶
func (svc *PhoenixService) CloseChannel(ctx context.Context, closeChannelRequest *lnclient.CloseChannelRequest) (*lnclient.CloseChannelResponse, error)
func (*PhoenixService) ConnectPeer ¶
func (svc *PhoenixService) ConnectPeer(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest) error
func (*PhoenixService) DisconnectPeer ¶
func (svc *PhoenixService) DisconnectPeer(ctx context.Context, peerId string) error
func (*PhoenixService) GetBalance ¶
func (svc *PhoenixService) GetBalance(ctx context.Context) (balance int64, err error)
func (*PhoenixService) GetBalances ¶
func (svc *PhoenixService) GetBalances(ctx context.Context) (*lnclient.BalancesResponse, error)
func (*PhoenixService) GetLogOutput ¶
func (*PhoenixService) GetNetworkGraph ¶
func (svc *PhoenixService) GetNetworkGraph(nodeIds []string) (lnclient.NetworkGraphResponse, error)
func (*PhoenixService) GetNewOnchainAddress ¶
func (svc *PhoenixService) GetNewOnchainAddress(ctx context.Context) (string, error)
func (*PhoenixService) GetNodeConnectionInfo ¶
func (svc *PhoenixService) GetNodeConnectionInfo(ctx context.Context) (nodeConnectionInfo *lnclient.NodeConnectionInfo, err error)
func (*PhoenixService) GetNodeStatus ¶
func (svc *PhoenixService) GetNodeStatus(ctx context.Context) (nodeStatus *lnclient.NodeStatus, err error)
func (*PhoenixService) GetOnchainBalance ¶
func (svc *PhoenixService) GetOnchainBalance(ctx context.Context) (*lnclient.OnchainBalanceResponse, error)
func (*PhoenixService) GetStorageDir ¶
func (svc *PhoenixService) GetStorageDir() (string, error)
func (*PhoenixService) GetSupportedNIP47Methods ¶
func (svc *PhoenixService) GetSupportedNIP47Methods() []string
func (*PhoenixService) GetSupportedNIP47NotificationTypes ¶
func (svc *PhoenixService) GetSupportedNIP47NotificationTypes() []string
func (*PhoenixService) ListChannels ¶
func (*PhoenixService) ListPeers ¶
func (svc *PhoenixService) ListPeers(ctx context.Context) ([]lnclient.PeerDetails, error)
func (*PhoenixService) ListTransactions ¶
func (svc *PhoenixService) ListTransactions(ctx context.Context, from, until, limit, offset uint64, unpaid bool, invoiceType string) (transactions []lnclient.Transaction, err error)
func (*PhoenixService) LookupInvoice ¶
func (svc *PhoenixService) LookupInvoice(ctx context.Context, paymentHash string) (transaction *lnclient.Transaction, err error)
func (*PhoenixService) MakeInvoice ¶
func (svc *PhoenixService) MakeInvoice(ctx context.Context, amount int64, description string, descriptionHash string, expiry int64) (transaction *lnclient.Transaction, err error)
func (*PhoenixService) OpenChannel ¶
func (svc *PhoenixService) OpenChannel(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest) (*lnclient.OpenChannelResponse, error)
func (*PhoenixService) RedeemOnchainFunds ¶
func (*PhoenixService) ResetRouter ¶
func (svc *PhoenixService) ResetRouter(key string) error
func (*PhoenixService) SendKeysend ¶
func (*PhoenixService) SendPaymentProbes ¶
func (svc *PhoenixService) SendPaymentProbes(ctx context.Context, invoice string) error
func (*PhoenixService) SendPaymentSync ¶
func (svc *PhoenixService) SendPaymentSync(ctx context.Context, payReq string) (*lnclient.PayInvoiceResponse, error)
func (*PhoenixService) SendSpontaneousPaymentProbes ¶
func (*PhoenixService) Shutdown ¶
func (svc *PhoenixService) Shutdown() error
func (*PhoenixService) SignMessage ¶
func (*PhoenixService) UpdateChannel ¶
func (svc *PhoenixService) UpdateChannel(ctx context.Context, updateChannelRequest *lnclient.UpdateChannelRequest) error
func (*PhoenixService) UpdateLastWalletSyncRequest ¶
func (svc *PhoenixService) UpdateLastWalletSyncRequest()
Click to show internal directories.
Click to hide internal directories.