getUniversalResolver() function
Creates a DIDResolver instance that can be used with did-resolver
Signature:
export declare function getUniversalResolver(url?: string): DIDResolver
Parameters
Parameter | Type | Description |
---|---|---|
url | string | (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,
})