Helios API/ API Reference/ Classes/
ScriptHash
Base class of MintingPolicyHash, ValidatorHash and StakingValidatorHash
Hierarchy
-
↳
ScriptHash
Index
Constructors
constructor
• new ScriptHash(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
Hash.hex
Methods
eq
▸ eq(other
): boolean
Parameters
Name | Type |
---|---|
other | Hash |
Returns
boolean
Inherited from
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
): Hash
Used internally for metadataHash and scriptDataHash
Parameters
Name | Type |
---|---|
bytes | number [] |
Returns
Inherited from
fromHex
▸ Static
fromHex(str
): Hash
Might be needed for internal use
Parameters
Name | Type |
---|---|
str | string |
Returns
Inherited from
fromProps
▸ Static
fromProps(props
): Hash