Initializes a new instance of the Value class.
Private
#coinPrivate
#multiassetPrivate
#originalGets 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.
A mapping of asset identifiers to their quantities.
Static
fromDeserializes the Value from a CBOR byte array.
The new Value instance.
The CBOR encoded Value object.
Static
fromCreates a Value object from the given Core Value object.
Generated using TypeDoc
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.