Handkit.Wallet.get_spendable_balance

You're seeing just the function get_spendable_balance, go back to Handkit.Wallet module for more information.
Link to this function

get_spendable_balance(client, currency \\ "USD")

View Source

Specs

get_spendable_balance(Handkit.Connect.t(), String.t()) ::
  {:ok, map()} | {:error, any()}

Returns the connected user's spendable balance.

Can optionally be passed a currency code. By default uses the users preferred currency.

Example

iex> Handkit.Wallet.get_spendable_balance(client)
{:ok, %{
  "currency_code" => "USD",
  "spendable_fiat_balance" => 2.3015,
  "spendable_satoshi_balance" => 1479882
}}