Configure claim conditions
Define who can claim NFTs in the collection, when and how many.
const presaleStartTime = new Date();
const publicSaleStartTime = new Date(Date.now() + 60 * 60 * 24 * 1000);
const claimConditions = [
{
startTime: presaleStartTime, // start the presale now
maxClaimableSupply: 2, // limit how many mints for this presale
price: 0.01, // presale price
snapshot: ['0x...', '0x...'], // limit minting to only certain addresses
},
{
startTime: publicSaleStartTime, // 24h after presale, start public sale
price: 0.08, // public sale price
}
]);
await contract.token.drop.claim.conditions.set(claimConditions);
Private
contractPrivate
erc20Private
storageClaim a certain amount of tokens to a specific Wallet
Rest
...args: [destinationAddress: string, amount: string | number, options?: ClaimOptions]Let the specified wallet claim Tokens.
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.token.drop.claim.to(address, quantity);
const receipt = tx.receipt; // the transaction receipt
Rest
...args: [destinationAddress: string, amount: string | number, options?: ClaimOptions]Generated using TypeDoc
Configure and claim ERC20 tokens
Remarks
Manage claim phases and claim ERC20 tokens that have been lazily minted.
Example