Skip to content

getProtectedDataPricingParams

Method to get all distribution params for a protected data.

Usage

ts
const 
pricingParams
= await
dataProtectorSharing
.
getProtectedDataPricingParams
({
protectedData
: '0x123abc...',
});

Parameters

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

protectedData Required *

Type: AddressOrENS

Address of the protected data you'd like to get the pricing params for.

ts
const 
pricingParams
= await
dataProtectorSharing
.
getProtectedDataPricingParams
({
protectedData
: '0x123abc...',
});

Return value

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

See Type ↗️