sendPayment method

Future<SendPaymentResponse> sendPayment({
  1. required SendPaymentRequest req,
  2. dynamic hint,
})
override

See BreezServices::send_payment

Implementation

Future<SendPaymentResponse> sendPayment({required SendPaymentRequest req, dynamic hint}) {
  var arg0 = _platform.api2wire_box_autoadd_send_payment_request(req);
  return _platform.executeNormal(FlutterRustBridgeTask(
    callFfi: (port_) => _platform.inner.wire_send_payment(port_, arg0),
    parseSuccessData: _wire2api_send_payment_response,
    parseErrorData: _wire2api_FrbAnyhowException,
    constMeta: kSendPaymentConstMeta,
    argValues: [req],
    hint: hint,
  ));
}