Add max_reverse_swap_amount docs

This commit is contained in:
Roei Erez
2023-11-26 08:50:52 +02:00
parent 8074a59d1c
commit 790d1784a4
9 changed files with 190 additions and 34 deletions

View File

@@ -17,6 +17,14 @@ void listCurrentFees({required ReverseSwapPairInfo currentFees}) {
// ANCHOR_END: get-current-reverse-swap-min-max
}
Future<MaxReverseSwapAmountResponse> maxReverseSwapAmount() async {
// ANCHOR: max-reverse-swap-amount
MaxReverseSwapAmountResponse maxAmount = await BreezSDK().maxReverseSwapAmount();
print("Max reverse swap amount: ${maxAmount.totalSat}");
// ANCHOR_END: max-reverse-swap-amount
return maxAmount;
}
Future<SendOnchainResponse> startReverseSwap({
required int amountSat,
required String onchainRecipientAddress,