Links

approveTransfer

Gives permission to transfer a token to another address.

Parameters

publicAddress: string - address that will be approved to transfer
tokenId: number - The NFT ID to transfer

Response

transactionReponse - confirmation the transaction was completed

Example

const txApprove = await existingContract.approveTransfer({
to: '0x9daB8FcFe91688d360FeB9ba83F74F29dfC82287',
tokenId: 1,
});
await txApprove.wait();
console.log(txApprove)