mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 05:44:20 +01:00
Add max_reverse_swap_amount docs
This commit is contained in:
@@ -28,6 +28,22 @@ public class SendOnchainSnippets
|
||||
// ANCHOR_END: get-current-reverse-swap-min-max
|
||||
}
|
||||
|
||||
public void MaxReverseSwapAmount(BlockingBreezServices sdk)
|
||||
{
|
||||
// ANCHOR: max-reverse-swap-amount
|
||||
try
|
||||
{
|
||||
var maxAmountResponse = sdk.MaxReverseSwapAmount();
|
||||
Console.WriteLine(
|
||||
$"Max reverse swap amount {maxAmountResponse.totalSat}");
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// Handle error
|
||||
}
|
||||
// ANCHOR_END: max-reverse-swap-amount
|
||||
}
|
||||
|
||||
public void StartReverseSwap(BlockingBreezServices sdk, ReverseSwapPairInfo currentFees, uint feeRate)
|
||||
{
|
||||
// ANCHOR: start-reverse-swap
|
||||
|
||||
Reference in New Issue
Block a user