Skip to main content

List trust entities

Returns a list of trust entities. Use the params to filter. For mobile devices, use the remote trust entity functions.

Related guide: Trust management

Function

getTrustEntities(
query: TrustEntityListQuery
): Promise<ItemList<TrustEntityListItem>>;

Parameters

export interface TrustEntityListQuery {
sort?: SortableTrustEntityColumnEnum;
sortDirection?: SortDirection;
name?: string;
exact?: ExactTrustEntityFilterColumnEnum[];
type?: string;
isPublisher?: boolean;
}
  • page - Returns a specific page of the results. The first page is 0.

  • pageSize - Specify how many items appear on each page.

  • sorting - If no sorting values are provided, CREATED_DATE + DESCENDING are used. If a value is passed for sort, the default direction becomes ASCENDING.

    • sort - Sort by certain values in the response body.

      • [NAME, ROLE]
    • sortDirection - Default value = DESCENDING.

      • [ASCENDING, DESCENDING]
  • name - Return only trust entities with names starting with this string. Not case-sensitive.

  • role - Filter by what the entity is trusted to do.

    • [ISSUER, VERIFIER, BOTH]
  • trustAnchor - Return trust entities from a particular trust anchor.

  • didId - Return trust entities by a particular DID.

  • organisationId - Return trust entities by a particular organisation.

  • exact - Set which filters apply in an exact way.

    • [NAME]

Return value

A list of trust entities matching the filters is returned.