Tradehub.Account.account

You're seeing just the function account, go back to Tradehub.Account module for more information.

Specs

account(any()) :: {:error, HTTPoison.Error.t()} | {:ok, Tradehub.account()}

Request information about the given account.

This endpoint returns numbers which are NOT human readable values. Consider base_precision and quote_precision to calculate a multiplication factor = 10 ^ (base_precision - quote_precisions).

Examples

iex> Tradehub.Account.account("tswth174cz08dmgluavwcz2suztvydlptp4a8f8t5h4t")
{:ok,
  %{
    height: "0",
    result: %{
      type: "cosmos-sdk/Account",
      value: %{
        account_number: "0",
        address: "",
        coins: [],
        public_key: nil,
        sequence: "0"
      }
    }
  }}

iex> Tradehub.Account.account!("tswth174cz08dmgluavwcz2suztvydlptp4a8f8t5h4t")