Skip to main content

getUniversalResolver() function

Creates a DIDResolver instance that can be used with did-resolver

Signature:

export declare function getUniversalResolver(url?: string): DIDResolver

Parameters

ParameterTypeDescription
urlstring(Optional) the URL for the universal resolver instance (See https://uniresolver.io )

Returns:

DIDResolver

DIDResolver

Example

const uniResolver = getUniversalResolver()
const resolver = new Resolver({
web: uniResolver,
key: uniResolver,
elem: uniResolver,
})