Helios API/ API Reference/ Classes/
MintingPolicyHash
Represents a blake2b-224 hash of a minting policy script
Note: to calculate this hash the script is first encoded as a CBOR byte-array and then prepended by a script version byte.
Hierarchy
-
↳
MintingPolicyHash
Index
Constructors
constructor
• new MintingPolicyHash(props
)
Parameters
Name | Type |
---|---|
props | HashProps |
Inherited from
Properties
bytes
• Readonly
bytes: number
[]
Inherited from
Accessors
hex
• get
hex(): string
Hexadecimal representation.
Returns
string
Inherited from
ScriptHash.hex
Methods
eq
▸ eq(other
): boolean
Parameters
Name | Type |
---|---|
other | Hash |
Returns
boolean
Inherited from
toBech32
▸ toBech32(): string
Encodes as bech32 string using 'asset' as human readable part
Returns
string
toCbor
▸ toCbor(): number
[]
Returns
number
[]
Inherited from
toCborHex
▸ toCborHex(): string
Returns
string
Inherited from
toSchemaJson
▸ toSchemaJson(): string
Returns
string
Inherited from
compare
▸ Static
compare(a
, b
): number
Parameters
Returns
number
Inherited from
fromCbor
▸ Static
fromCbor(bytes
): MintingPolicyHash
Parameters
Name | Type |
---|---|
bytes | number [] |
Returns
Overrides
fromHex
▸ Static
fromHex(str
): MintingPolicyHash
Parameters
Name | Type |
---|---|
str | string |
Returns
Overrides
fromProps
▸ Static
fromProps(props
): MintingPolicyHash
Parameters
Name | Type |
---|---|
props | HashProps | MintingPolicyHash |
Returns
Overrides
fromUplcCbor
▸ Static
fromUplcCbor(bytes
): MintingPolicyHash
Parameters
Name | Type |
---|---|
bytes | string | number [] |
Returns
fromUplcData
▸ Static
fromUplcData(data
): MintingPolicyHash
Parameters
Name | Type |
---|---|
data | UplcData |