Skip to main content

IDIDManager.didManagerGetByAlias() method

Returns a specific identifier by alias

Signature:

didManagerGetByAlias(args: IDIDManagerGetByAliasArgs): Promise<IIdentifier>;

Parameters

ParameterTypeDescription
argsIDIDManagerGetByAliasArgsRequired. Arguments to get the identifier

Returns:

Promise<IIdentifier>

Example

const identifier = await agent.didManagerGetByAlias({
alias: 'charlie',
provider: 'did:ethr:goerli',
})