Links

transfer

Transfers the token from one address to another.

Parameters

from: string - the public address of the one transferring the token
to: string - the address receiving the token
tokenID: number - the ID of the token being transferred

Response

transactionResponse: confirmation the transaction is complete

Example

const txTransfer = await existing.transfer({
from: process.env.WALLET_PUBLIC_ADDRESS,
to: secondUser,
tokenId: 1
});
const receipt = await txTransfer.wait();
console.log(receipt);