Utility

Utility Functions

Descriptionโ€‹

Returns list of the supported blockchains

Return typeโ€‹

Promise<{
  chainId?: number
  coin: {
    decimals: number
    logo: string
    name: string
    symbol: string
  }
  id: string
  name: string
  uriPrefix: string
}[]>

Usage Exampleโ€‹

const blockchains = await sdk.blockchain.list()

Get Exchange Ratesโ€‹

Descriptionโ€‹

Returns exchange rates between crypto and fiat (USD)

Return typeโ€‹

Promise<{ cryptoCurrencyId: string, fiatCurrencyId: string, rate: string }[]>

Usage Exampleโ€‹โ€‹

const exchangeRates = await sdk.crypto.getExchangeRates()

Response Exampleโ€‹

[{ "cryptoCurrencyId": "ETH", "fiatCurrencyId": "usd", "rate": "1234" }]

Last updated