Helios API/ API Reference/ Classes/
HashedDatum
Inside helios this type is named OutputDatum::Hash in order to distinguish it from the user defined Datum, but outside helios scripts there isn't much sense to keep using the name 'OutputDatum' instead of Datum
Hierarchy
-
↳
HashedDatum
Index
Constructors
constructor
• new HashedDatum(hash
, origData?
)
Parameters
Overrides
Accessors
data
• get
data(): null
| UplcData
Returns
null
| UplcData
Inherited from
Datum.data
hash
• get
hash(): DatumHash
Returns
Inherited from
Datum.hash
Methods
dump
▸ dump(): any
Returns
any
Inherited from
isHashed
▸ isHashed(): boolean
Returns
boolean
Inherited from
isInline
▸ isInline(): boolean
Returns
boolean
Inherited from
toCbor
▸ toCbor(): number
[]
Returns
number
[]
Inherited from
toCborHex
▸ toCborHex(): string
Returns
string
Inherited from
toData
▸ toData(): ConstrData
Returns
Inherited from
fromCbor
▸ Static
fromCbor(bytes
): Datum
Parameters
Name | Type |
---|---|
bytes | number [] |
Returns
Inherited from
fromData
▸ Static
fromData(data
): HashedDatum
Constructs a HashedDatum
. The input data is hashed internally.
Parameters
Name | Type |
---|---|
data | UplcData |
Returns
fromUplcData
▸ Static
fromUplcData(data
): null
| Datum
Parameters
Name | Type |
---|---|
data | UplcData |
Returns
null
| Datum
Inherited from
hashed
▸ Static
hashed(data
): Datum
Constructs a HashedDatum
. The input data is hashed internally.
Parameters
Name | Type |
---|---|
data | UplcData | HeliosData | UplcDataValue |
Returns
Inherited from
inline
▸ Static
inline(data
): Datum
Parameters
Name | Type |
---|---|
data | UplcData | HeliosData | UplcDataValue |