Links

setApprovalForAll

Gives full approval rights to a given address.

Parameters

to: string - public address of the account to receive approval rights
approvalStatus: boolean - set to true to grant approval rights

Response

transactionResponse: confirmation the transaction is complete

Example

const setApproval = await existingContract.setApprovalForAll({
to: publicAddress,
approvalStatus: true,
});
const approvalSet = await setApproval.wait();
console.log(approvalSet);