payInvoice method
Future<PayInvoiceResponse>
payInvoice(
- NwcConnection connection, {
- required String invoice,
- Duration? timeout,
Does a pay_invoice
request
Implementation
Future<PayInvoiceResponse> payInvoice(NwcConnection connection,
{required String invoice, Duration? timeout}) async {
return _executeRequest<PayInvoiceResponse>(
connection, PayInvoiceRequest(invoice: invoice),
timeout: timeout);
}