A Value object encapsulates the quantity of assets of different types, including ADA (Cardano's native cryptocurrency) expressed in lovelace, where 1 ADA = 1,000,000 lovelace, and other native tokens. Each key in the tokens object is a unique identifier for an asset, and the corresponding value is the quantity of that asset.

Hierarchy

  • Value

Constructors

Properties

#coin: bigint = ...
#multiasset: undefined | Cardano.TokenMap = undefined
#originalBytes: undefined | HexBlob = undefined

Methods

  • Gets the assets included in this Value.

    Each key in the tokens object is a unique identifier for an asset, and the corresponding value is the quantity of that asset.

    The asset identifiers for native tokens are constructed as the hash of the policy script under which they were minted, concatenated with a name for the token.

    Returns

    A mapping of asset identifiers to their quantities.

    Returns undefined | Cardano.TokenMap

Generated using TypeDoc