Creates a new CryptoAmount instance.
The amount of the Asset
The Asset
Optional
assetId: stringOptional Asset ID override
Private
amountPrivate
assetPrivate
assetStatic
fromConverts a CryptoAmount model to a CryptoAmount.
The crypto amount from the API
The converted CryptoAmount object
Static
fromConverts 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.
The crypto amount from the API
The Asset ID of the denomination we want returned
The converted CryptoAmount object
A representation of a CryptoAmount that includes the amount and asset.