typescript-sdk

Home > @3rdweb/sdk > NFTModule > transfer

NFTModule.transfer() method

Transfer NFT

Signature:

transfer(to: string, tokenId: string): Promise<TransactionReceipt>;

Parameters

Parameter Type Description
to string  
tokenId string  

Returns:

Promise<TransactionReceipt>

Remarks

Transfer an NFT from the connected wallet to another wallet.

Example

// Address of the wallet you want to send the NFT to
const toAddress = "";

// The token ID of the NFT you want to send
const tokenId = "0";

await module.transfer(toAddress, tokenId);