finalizeProposal method

  1. @override
Future<PayjoinProposal> finalizeProposal({
  1. required FutureOr<String> processPsbt(
    1. String p1
    ),
  2. BigInt? minFeeRateSatPerVb,
  3. dynamic hint,
})

Implementation

@override
Future<PayjoinProposal> finalizeProposal(
    {required FutureOr<String> Function(String p1) processPsbt,
    BigInt? minFeeRateSatPerVb,
    hint}) async {
  try {
    final res = await super.finalizeProposal(
        processPsbt: processPsbt, minFeeRateSatPerVb: minFeeRateSatPerVb);
    return PayjoinProposal._(field0: res.field0);
  } on error.PayjoinError catch (e) {
    throw mapPayjoinError(e);
  }
}