A representation of a balance.

Properties

amount: Decimal
asset?: Asset
assetId: string

Methods

  • Converts a BalanceModel and asset ID into a Balance object.

    Parameters

    • model: Balance

      The balance model object.

    • assetId: string

      The asset ID.

    Returns Balance

    The Balance object.