typescript-sdk

Home > @3rdweb/sdk > PackModule > transfer

PackModule.transfer() method

Transfer Pack

Signature:

transfer(to: string, tokenId: string, amount: BigNumber): Promise<void>;

Parameters

Parameter Type Description
to string  
tokenId string  
amount BigNumber  

Returns:

Promise<void>

Remarks

Transfer a pack from the connected wallet to another wallet.

Example

// Address of the wallet you want to send the pack to
const toAddress = "0x...";

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

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

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