setProtectedDataToSubscription
Method to set a protected data as part of your subscription.
Any user who has an active subscription to your collection will be able to consume this protected data.
Usage
ts
const setToSubscriptionResult =
await dataProtectorSharing.setProtectedDataToSubscription({
protectedData: '0x123abc...',
});
Parameters
ts
import { type SetProtectedDataToSubscriptionParams } from '@iexec/dataprotector';
protectedData Required *
Type: AddressOrENS
Address of the protected data you'd like to be part of your subscription.
ts
const setToSubscriptionResult =
await dataProtectorSharing.setProtectedDataToSubscription({
protectedData: '0x123abc...',
});
Return value
ts
import { type SuccessWithTransactionHash } from '@iexec/dataprotector';