AssetClass
Represents a unique token on the blockchain using its MintingPolicyHash
and its token name (as a ByteArray
).
Associated functions and constants
ADA
Lovelace AssetClass
(empty MintingPolicyHash
and empty token name ByteArray
):
AssetClass::ADA -> AssetClass
new
Constructs a new AssetClass
using a MintingPolicyHash
and a token name ByteArray
:
AssetClass::new(
mph: MintingPolicyHash,
token_name: ByteArray
) -> AssetClass
from_data
AssetClass::from_data(data: Data) -> AssetClass
Getters
mph
asset_class.mph -> MintingPolicyHash
token_name
asset_class.token_name -> ByteArray
Operators
==
AssetClass == AssetClass -> Bool
!=
AssetClass != AssetClass -> Bool
Methods
serialize
asset_class.serialize() -> ByteArray
show
Returns the hexadecimal representation of the MintingPolicyHash
and the token name, separated by a period (.
).
asset_class.show() -> String