Home > @3rdweb/sdk > PackModule > transfer
Transfer Pack
Signature:
transfer(to: string, tokenId: string, amount: BigNumber): Promise<void>;
Parameter | Type | Description |
---|---|---|
to | string | |
tokenId | string | |
amount | BigNumber |
Returns:
Promise<void>
Transfer a pack from the connected wallet to another wallet.
// 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);