IDIDManager.didManagerSetAlias() method
Sets identifier alias
Signature:
didManagerSetAlias(args: IDIDManagerSetAliasArgs, context: IAgentContext<IKeyManager>): Promise<boolean>;
Parameters
Parameter | Type | Description |
---|---|---|
args | IDIDManagerSetAliasArgs | Required. Arguments to set identifier alias |
context | IAgentContext<IKeyManager> | Execution context. Requires agent that has IKeyManager methods |
Returns:
Promise<boolean>
Example
const identifier = await agent.didManagerCreate()
const result = await agent.didManagerSetAlias({
did: identifier.did,
alias: 'carol',
})