MultiAsset
Extends: RefCounted
Description
A value held at a Utxo is used for representing these assets and their respective quantities.
A value held at a Utxo is used for representing these assets and their respective quantities.
Constants Descriptions
Status
Method Descriptions
_init
get_asset_quantity
Return the quantity of the given [param asset] held.
get_tokens
Get a Dictionary mapping [class AssetName]s to [class BigInt]s under the given [param policy_id].
set_asset_quantity
Set the [param quantity] of the given [param asset].
add_asset
merge
to_dictionary
Convert to a dictionary representation. This can be used by [method from_dictionary].
duplicate
from_dictionary (static)
Try to parse a dictionary into a MultiAssets as values.
empty (static)
Return a value with no assets
Sub-classes
FromDictionaryResult
Property Descriptions
value
- Getter:
@value_getter
WARNING: This function may fail! First match on Result.tag or call Result.is_ok.
error
- Getter:
@error_getter
WARNING: This function may fail! First match on Result.tag or call Result._is_err.
SetAssetResult
Property Descriptions
value
- Getter:
@value_getter
WARNING: This function may fail! First match on Result.tag or call Result.is_ok.
error
- Getter:
@error_getter
WARNING: This function may fail! First match on Result.tag or call Result._is_err.