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

ParameterTypeDescription
{ identifier, service, options }{ identifier: IIdentifier; service: IService; options?: IUpdateOpts; }
contextIContext

Returns:

Promise<any>

identifier provider specific response. Can be txHash, etc,