Helios API/ API Reference/ Classes/
AssetClass
Represents a MintingPolicyHash
combined with a token name.
Hierarchy
-
↳
AssetClass
Index
Constructors
constructor
• new AssetClass(props
)
Intelligently converts arguments.
The format for single argument string is "
Parameters
Name | Type |
---|---|
props | AssetClassProps |
Overrides
Accessors
mintingPolicyHash
• get
mintingPolicyHash(): MintingPolicyHash
Returns
tokenName
• get
tokenName(): ByteArray
Returns
ADA
• Static
get
ADA(): AssetClass
Returns
Methods
_toUplcData
▸ _toUplcData(): ConstrData
Used when generating script contexts for running programs
Returns
toCbor
▸ toCbor(): number
[]
Returns
number
[]
Inherited from
toCborHex
▸ toCborHex(): string
Returns
string
Inherited from
toFingerprint
▸ toFingerprint(): string
Cip14 fingerprint This involves a hash, so you can't use a fingerprint to calculate the underlying policy/tokenName.
Returns
string
toSchemaJson
▸ toSchemaJson(): string
Returns
string
Inherited from
fromCbor
▸ Static
fromCbor(bytes
): AssetClass
Deserializes bytes into an AssetClass
.
Parameters
Name | Type |
---|---|
bytes | number [] |
Returns
fromProps
▸ Static
fromProps(props
): AssetClass
Parameters
Name | Type |
---|---|
props | AssetClass | AssetClassProps |
Returns
fromUplcCbor
▸ Static
fromUplcCbor(bytes
): AssetClass
Parameters
Name | Type |
---|---|
bytes | string | number [] |
Returns
fromUplcData
▸ Static
fromUplcData(data
): AssetClass
Parameters
Name | Type |
---|---|
data | UplcData |