IService
@iota/identity-wasm API documentation
Interface: IService
Base Service properties.
Properties
id
readonlyid:string|DIDUrl
Identifier of the service.
Must be a valid DIDUrl with a fragment.
type
readonlytype:string|string[]
Type of service.
E.g. "LinkedDomains".
serviceEndpoint
readonlyserviceEndpoint: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?
readonlyoptionalproperties: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.