Skip to main content
Version: 1.3

Class: IotaDocumentMetadata

identity_wasm.IotaDocumentMetadata

Additional attributes related to an IOTA DID Document.

Table of contents

Methods

Methods

toJSON

toJSON(): Object

  • Return copy of self without private attributes.

Returns

Object

toJSON(): any

Serializes this to a JSON object.

Returns

any


toString

toString(): string

Return stringified version of self.

Returns

string


created

created(): undefined | Timestamp

Returns a copy of the timestamp of when the DID document was created.

Returns

undefined | Timestamp


updated

updated(): undefined | Timestamp

Returns a copy of the timestamp of the last DID document update.

Returns

undefined | Timestamp


deactivated

deactivated(): undefined | boolean

Returns a copy of the deactivated status of the DID document.

Returns

undefined | boolean


stateControllerAddress

stateControllerAddress(): undefined | string

Returns a copy of the Bech32-encoded state controller address, if present.

Returns

undefined | string


governorAddress

governorAddress(): undefined | string

Returns a copy of the Bech32-encoded governor address, if present.

Returns

undefined | string


properties

properties(): Map\<string, any>

Returns a copy of the custom metadata properties.

Returns

Map\<string, any>


fromJSON

Static fromJSON(json): IotaDocumentMetadata

Deserializes an instance from a JSON object.

Parameters

NameType
jsonany

Returns

IotaDocumentMetadata


clone

clone(): IotaDocumentMetadata

Deep clones the object.

Returns

IotaDocumentMetadata