payInvoice method

Future<PayInvoiceResponse> payInvoice(
  1. NwcConnection connection, {
  2. required String invoice,
})

Does a pay_invoice request

Implementation

Future<PayInvoiceResponse> payInvoice(NwcConnection connection,
    {required String invoice}) async {
  return _executeRequest<PayInvoiceResponse>(
      connection, PayInvoiceRequest(invoice: invoice));
}