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 Required *

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