CreateInvoice(LightMoney amount, string description, TimeSpan expiry)Creates a new Lightning invoice.
Pay(string bolt11, PayInvoiceParams payParams)Pays a Lightning invoice.
GetBalance()Returns wallet balance information.
Manages Lightning invoices:
CreateInvoiceAsync(amount, description, expiry)GetInvoiceAsync(paymentRequest)CancelInvoiceAsync(paymentHash)
Handles payment operations:
PayInvoiceAsync(paymentRequest, amount)GetPaymentStatusAsync(paymentHash)
Wallet information and balance:
GetWalletInfoAsync()GetBalanceAsync()
Exchange rate operations:
GetExchangeRateAsync(from, to)ConvertAmountAsync(amount, from, to)
NFC card operations:
ProcessBoltcardTapAsync(cardUid)GetBoltcardBalanceAsync(cardId)TopupBoltcardAsync(cardId, amount)
Real-time updates:
ConnectAsync()DisconnectAsync()OnInvoiceUpdatedOnPaymentReceived
System monitoring:
GetHealthStatusAsync()GetMetricsAsync()
The plugin communicates with Flash via GraphQL. Key operations:
walletInfo- Get wallet detailsinvoices- List invoicespayments- List paymentsexchangeRates- Get current rates
createInvoice- Generate new invoicepayInvoice- Send paymentcancelInvoice- Cancel pending invoice
invoiceUpdated- Real-time invoice updatespaymentReceived- Instant payment notifications