payInvoice method

Future<PayInvoiceResponse> payInvoice(
  1. NwcConnection connection, {
  2. required String invoice,
  3. 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);
}