Skip to content

getCollectionOwners

Method to get all collection owners.

Results of CollectionOwner.collections are ordered by collections.creationTimestamp desc.

Usage

ts
const 
collectionOwners
= await
dataProtectorSharing
.
getCollectionOwners
();

Parameters

ts
import { type 
GetCollectionOwnersParams
} from '@iexec/dataprotector';

limit Optional

Type: number
Default: 100
Range: [1...1000]

ts
const 
collectionOwners
= await
dataProtectorSharing
.
getCollectionOwners
({
limit
: 100,
});

Return value

ts
import type { 
GetCollectionOwnersResponse
} from '@iexec/dataprotector';
// Child types import type {
CollectionOwner
,
SubscriptionParams
} from '@iexec/dataprotector';

See Type ↗️

hasActiveSubscription

true if you (logged-in user) have an active subscription to one of the collections.