OnChainNotarization
@iota/notarization API documentation
Class: OnChainNotarization
Represents an on-chain notarization object.
Provides access to various properties of the notarization, such as its ID, state, metadata and method.
Properties
id
readonlyid:string
Retrieves the ID of the notarization.
Returns
A hexadecimal string representing the notarization ID.
state
readonlystate:State
Retrieves the current state of the notarization.
Returns
A State object representing the notarization state.
immutableMetadata
readonlyimmutableMetadata:ImmutableMetadata
Retrieves the immutable metadata of the notarization.
Returns
A ImmutableMetadata object containing the metadata.
updatableMetadata
readonlyupdatableMetadata:undefined|string
Retrieves the updatable metadata of the notarization.
Returns
An optional string containing the metadata.
lastStateChangeAt
readonlylastStateChangeAt:bigint
Retrieves the timestamp of the last state change.
Returns
A number value representing the timestamp,
the time in seconds since the Unix epoch.
stateVersionCount
readonlystateVersionCount:bigint
Retrieves the count of state versions.
Returns
A number value representing the number of state versions.
method
readonlymethod:NotarizationMethod
Retrieves the notarization method.
Returns
A NotarizationMethod object representing the method.
Methods
toJSON()
toJSON():
Object
- Return copy of self without private attributes.
Returns
Object
toString()
toString():
string
Return stringified version of self.
Returns
string