mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
33 lines
684 B
C#
33 lines
684 B
C#
using Breez.Sdk;
|
|
|
|
public class FiatCurrenciesSnippets
|
|
{
|
|
public void ListFiatCurrencies(BlockingBreezServices sdk)
|
|
{
|
|
// ANCHOR: list-fiat-currencies
|
|
try
|
|
{
|
|
var fiatCurrencies = sdk.ListFiatCurrencies();
|
|
}
|
|
catch (Exception)
|
|
{
|
|
// Handle error
|
|
}
|
|
// ANCHOR_END: list-fiat-currencies
|
|
}
|
|
|
|
public void FetchFiatRates(BlockingBreezServices sdk)
|
|
{
|
|
// ANCHOR: fetch-fiat-rates
|
|
try
|
|
{
|
|
var fiatRates = sdk.FetchFiatRates();
|
|
}
|
|
catch (Exception)
|
|
{
|
|
// Handle error
|
|
}
|
|
// ANCHOR_END: fetch-fiat-rates
|
|
}
|
|
}
|