getCollectionsByOwner β
Method to get all collections for a specific user.
Usage β
ts
const userCollections = await dataProtectorSharing.getCollectionsByOwner({
owner: '0xa0c15e...',
});
Parameters β
ts
import { type GetCollectionsByOwnerParams } from '@iexec/dataprotector';
owner β
Type: AddressOrENS
ts
const userCollections = await dataProtectorSharing.getCollectionsByOwner({
owner: '0xa0c15e...',
});
includeHiddenProtectedDatas β
Type: boolean
Default: false
ts
const userCollectionsWithAllProtectedData =
await dataProtectorSharing.getCollectionsByOwner({
owner: '0xa0c15e...',
includeHiddenProtectedDatas: true,
});
Return Value β
ts
import type { GetCollectionsByOwnerResponse } from '@iexec/dataprotector';
// Child types
import type {
CollectionWithProtectedDatas,
ProtectedDataInCollection,
SubscriptionParams,
RentingParams,
SellingParams,
} from '@iexec/dataprotector';