Skip to main content

IService

@iota/identity-wasm API documentation


Interface: IService

Base Service properties.

Properties

id

readonly id: string | DIDUrl

Identifier of the service.

Must be a valid DIDUrl with a fragment.


type

readonly type: string | string[]

Type of service.

E.g. "LinkedDomains".


serviceEndpoint

readonly serviceEndpoint: string | string[] | Map<string, string[]> | Record<string, string[]>

A URL, set of URLs, or map of URL sets.

NOTE: throws an error if any entry is not a valid URL string. List entries must be unique.


properties?

readonly optional properties: Map<string, any> | Record<string, any>

Additional custom properties to embed in the service.

WARNING: entries may overwrite existing fields and result in invalid documents.