paymentByHash method

Future<Payment?> paymentByHash({
  1. required String hash,
  2. dynamic hint,
})
override

See BreezServices::list_payments

Implementation

Future<Payment?> paymentByHash({required String hash, dynamic hint}) {
  var arg0 = _platform.api2wire_String(hash);
  return _platform.executeNormal(FlutterRustBridgeTask(
    callFfi: (port_) => _platform.inner.wire_payment_by_hash(port_, arg0),
    parseSuccessData: _wire2api_opt_box_autoadd_payment,
    parseErrorData: _wire2api_FrbAnyhowException,
    constMeta: kPaymentByHashConstMeta,
    argValues: [hash],
    hint: hint,
  ));
}