Type alias DidResolutionResult

DidResolutionResult: {
    @context?: "https://w3id.org/did-resolution/v1" | string | (string | Record<string, any>)[];
    didDocument: DidDocument | null;
    didDocumentMetadata: DidDocumentMetadata;
    didResolutionMetadata: DidResolutionMetadata;
}

Represents the result of a Decentralized Identifier (DID) resolution operation.

This type encapsulates the complete outcome of resolving a DID, including the resolution metadata, the DID document (if resolution is successful), and metadata about the DID document.

Type declaration

  • Optional @context?: "https://w3id.org/did-resolution/v1" | string | (string | Record<string, any>)[]

    A JSON-LD context link, which provides the JSON-LD processor with the information necessary to interpret the resolution result JSON. The default context URL is 'https://w3id.org/did-resolution/v1'.

  • didDocument: DidDocument | null

    The DID document resulting from the resolution process, if successful.

    If the resolve function was called and successful, this MUST contain a DID document corresponding to the DID. If the resolution is unsuccessful, this value MUST be empty.

  • didDocumentMetadata: DidDocumentMetadata

    Metadata about the DID Document.

    This structure contains information about the DID Document like creation and update timestamps, deactivation status, versioning information, and other details relevant to the DID Document.

  • didResolutionMetadata: DidResolutionMetadata

    A metadata structure consisting of values relating to the results of the DID resolution process.

    This structure is REQUIRED, and in the case of an error in the resolution process, this MUST NOT be empty. If the resolution is not successful, this structure MUST contain an error property describing the error.