Skip to content

getCollectionOwners

Method to get all collection owners.

Results are ordered by CollectionOwner.id asc.

Soon Results will be ordered by

CollectionOwner.collections.creationTimestamp desc.

Usage

ts

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

Parameters

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

limit

number | undefined

default: 100

Value between 1 and 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.