buildWithAdditionalFee method

  1. @override
Future<RequestContext> buildWithAdditionalFee({
  1. required BigInt maxFeeContribution,
  2. int? changeIndex,
  3. required BigInt minFeeRate,
  4. required bool clampFeeContribution,
})

Implementation

@override
Future<RequestContext> buildWithAdditionalFee(
    {required BigInt maxFeeContribution,
    int? changeIndex,
    required BigInt minFeeRate,
    required bool clampFeeContribution}) async {
  try {
    final res = await super.buildWithAdditionalFee(
        maxFeeContribution: maxFeeContribution,
        changeIndex: changeIndex,
        minFeeRate: minFeeRate,
        clampFeeContribution: clampFeeContribution);
    return RequestContext._(field0: res.field0);
  } on error.PayjoinError catch (e) {
    throw mapPayjoinError(e);
  }
}