Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Balance<T>

Type Parameters

  • T extends BaseCurrencyType

Hierarchy

  • Balance

Index

Constructors

  • new Balance<T>(integerBalance: undefined | number, type: T): Balance<T>

Properties

bigBalance: BigNumber
bigInteger: BigNumber
floatBalance: number
integerBalance: number
type: T

Methods

  • toString(maxDecimalPlaces?: number, options?: StringFormatOptions): string
  • Parameters

    • Optional maxDecimalPlaces: number
    • Optional options: StringFormatOptions

    Returns string

  • fromIntAndTicker(integerBalance: number, ticker?: "SOL" | "MOBILE" | "HNT" | "IOT" | "DC" | "TNT" | "USD" | "HST"): Balance<default>
  • Parameters

    • integerBalance: number
    • Optional ticker: "SOL" | "MOBILE" | "HNT" | "IOT" | "DC" | "TNT" | "USD" | "HST"

    Returns Balance<default>

Generated using TypeDoc