Skip to main content

DIDResolverPlugin.getDIDComponentById() method

Dereferences a DID URL fragment and returns the corresponding DID document entry.

Signature:

getDIDComponentById({ didDocument, didUrl, section, }: {
didDocument: DIDDocument;
didUrl: string;
section?: DIDDocumentSection;
}): Promise<VerificationMethod | ServiceEndpoint>;

Parameters

ParameterTypeDescription
{ didDocument, didUrl, section, }{ didDocument: DIDDocument; didUrl: string; section?: DIDDocumentSection; }

Returns:

Promise<VerificationMethod | ServiceEndpoint>

a Promise containing the or