Skip to main content

TokenDrop.claimTo() method

Claim a certain amount of tokens to a specific Wallet

Example

const address = "{{wallet_address}}"; // address of the wallet you want to claim the NFTs
const quantity = 42.69; // how many tokens you want to claim

const tx = await contract.claimTo(address, quantity);
const receipt = tx.receipt; // the transaction receipt

Signature:

claimTo(destinationAddress: string, amount: Amount, checkERC20Allowance?: boolean): Promise<TransactionResult>;

Parameters

ParameterTypeDescription
destinationAddressstringAddress you want to send the token to
amountAmountQuantity of the tokens you want to claim
checkERC20Allowanceboolean(Optional) Optional, check if the wallet has enough ERC20 allowance to claim the tokens, and if not, approve the transfer

Returns:

Promise<TransactionResult>

  • The transaction receipt

Remarks

Let the specified wallet claim Tokens.