Skip to main content

IonDIDProvider.addService() method

Adds a service to a DID Document

Signature:

addService({ identifier, service, options }: {
identifier: IIdentifier;
service: IService;
options?: IUpdateOpts;
}, context: IContext): Promise<any>;

Parameters

Parameter

Type

Description

{ identifier, service, options }

{ identifier: IIdentifier; service: IService; options?: IUpdateOpts; }

context

IContext

**Returns:**

Promise<any>

identifier provider specific response. Can be txHash, etc,