Skip to content

removeProtectedDataFromRenting

Method to remove a protected data from renting.

If there are still active rentals to the protected data, these rentals will be honored until the end of their rental period.

Usage

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

Parameters

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

protectedData Required *

Type: AddressOrENS

Address of the protected data you'd like to remove from renting.

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

Return value

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

See SuccessWithTransactionHash