typescript-sdk

Home > @3rdweb/sdk > BundleDropModule > claimTo

BundleDropModule.claimTo() method

Claim NFTs to Wallet

Signature:

claimTo(tokenId: BigNumberish, quantity: BigNumberish, addressToClaim: string, proofs?: BytesLike[]): Promise<TransactionReceipt>;

Parameters

Parameter Type Description
tokenId BigNumberish Id of the token you want to claim
quantity BigNumberish Quantity of the tokens you want to claim
addressToClaim string Address you want to send the token to
proofs BytesLike[] Array of proofs

Returns:

Promise<TransactionReceipt>

Remarks

Let the a specified wallet claim NFTs.

Example

// Address of the wallet you want to claim the NFTs
const address = "";

// The number of NFTs to claim
const quantity = 1;

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

await module.claimTo(tokenId, quantity, address);