Data
@iota/notarization API documentation
Class: Data
Represents the different types of data that can be notarized.
Properties
value
readonly
value:any
Retrieves the value of the data as a any
.
Returns
A any
containing the data, either as bytes or text.
Methods
toJSON()
toJSON():
Object
- Return copy of self without private attributes.
Returns
Object
toString()
Call Signature
toString():
string
Return stringified version of self.
Returns
string
Call Signature
toString():
string
Converts the data to a string representation.
Returns
A String
containing the text representation of the data.
Returns
string
toBytes()
toBytes():
Uint8Array
Converts the data to a byte array.
Returns
A Uint8Array
containing the byte representation of the data.
Returns
Uint8Array