Files
breez-sdk-docs/snippets/react-native/fiat_currencies.ts
2023-11-17 13:22:23 +01:00

17 lines
412 B
TypeScript

import {
listFiatCurrencies,
fetchFiatRates
} from '@breeztech/react-native-breez-sdk'
const exampleListCurrencies = async () => {
// ANCHOR: list-fiat-currencies
const fiatCurrencies = await listFiatCurrencies()
// ANCHOR_END: list-fiat-currencies
}
const exampleFetchRates = async () => {
// ANCHOR: fetch-fiat-rates
const fiatRates = await fetchFiatRates()
// ANCHOR_END: fetch-fiat-rates
}