typescript-sdk

Home > @3rdweb/sdk > BundleDropModule > transfer

BundleDropModule.transfer() method

Transfer NFT

Signature:

transfer(to: string, tokenId: BigNumberish, amount: BigNumberish, data?: BytesLike): Promise<TransactionReceipt>;

Parameters

Parameter Type Description
to string  
tokenId BigNumberish  
amount BigNumberish  
data BytesLike  

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 = "0x...";

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

// The number of NFTs you want to send
const amount = 1;

await module.transfer(toAddress, tokenId, amount);