Skip to main content

IDIDManager.didManagerSetAlias() method

Sets identifier alias

Signature:

didManagerSetAlias(args: IDIDManagerSetAliasArgs, context: IAgentContext<IKeyManager>): Promise<boolean>;

Parameters

ParameterTypeDescription
argsIDIDManagerSetAliasArgsRequired. Arguments to set identifier alias
contextIAgentContext<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',
})