Skip to content

removeProtectedDataForSale ​

Method to remove a protected data for sale.

Usage ​

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

Parameters ​

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

protectedData ​

Type: AddressOrENS

Address of the protected data that you'd like to remove for sale.

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

Return Value ​

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

See SuccessWithTransactionHash