Skip to main content

Get trust entity by DID

Pass a DID id and return the matching trust entity details. This is useful for displaying trust information such as website and logo.

Function

getTrustEntityByDid(didId: DidListItem["id"]): Promise<TrustEntity>;

Parameters

  • didId - Specify the id of the entity's DID.

Return value

export interface TrustEntityListItem {
id: string;
createdDate: string;
lastModified: string;
name: string;
logo?: string;
website?: string;
termsUrl?: string;
privacyUrl?: string;
role: TrustEntityRoleEnum;
state: TrustEntityStateEnum;
did: DidListItem;
trustAnchor: TrustAnchor;
}

export interface TrustEntity extends TrustEntityListItem {
organisationId: string;
}