EditionDrop.claimTo() method
Claim NFTs to a specific Wallet
Example
const address = "{{wallet_address}}"; // address of the wallet you want to claim the NFTs
const tokenId = 0; // the id of the NFT you want to claim
const quantity = 1; // how many NFTs you want to claim
const tx = await contract.claimTo(address, tokenId, quantity);
const receipt = tx.receipt; // the transaction receipt
Signature:
claimTo(destinationAddress: string, tokenId: BigNumberish, quantity: BigNumberish, checkERC20Allowance?: boolean): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
destinationAddress | string | Address you want to send the token to |
tokenId | BigNumberish | Id of the token you want to claim |
quantity | BigNumberish | Quantity of the tokens you want to claim |
checkERC20Allowance | boolean | (Optional) Optional, check if the wallet has enough ERC20 allowance to claim the tokens, and if not, approve the transfer |
Returns:
Promise<TransactionResult>
- Receipt for the transaction
Remarks
Let the specified wallet claim NFTs.