A representation of a CryptoAmount that includes the amount and asset.

Constructors

Properties

amount: Decimal
assetId: string
assetObj: Asset

Methods

  • Returns a string representation of the CryptoAmount.

    Returns string

    A string representation of the CryptoAmount

  • Converts a CryptoAmount model and asset ID to a CryptoAmount. This can be used to specify a non-primary denomination that we want the amount to be converted to.

    Parameters

    • amountModel: CryptoAmount

      The crypto amount from the API

    • assetId: string

      The Asset ID of the denomination we want returned

    Returns CryptoAmount

    The converted CryptoAmount object