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.erc721.claimConditions.set(claimConditions);
Private
contractPrivate
erc721Private
storageClaim unique NFTs to a specific Wallet
Rest
...args: [destinationAddress: string, quantity: BigNumberish, options?: ClaimOptions]Let the specified wallet claim NFTs.
const address = "{{wallet_address}}"; // address of the wallet you want to claim the NFTs
const quantity = 1; // how many unique NFTs you want to claim
const tx = await contract.erc721.claimTo(address, quantity);
const receipt = tx[0].receipt; // the transaction receipt
const claimedTokenId = tx[0].id; // the id of the first NFT claimed
const claimedNFT = await tx[0].data(); // (optional) get the first claimed NFT metadata
Rest
...args: [destinationAddress: string, quantity: BigNumberish, options?: ClaimOptions]Generated using TypeDoc
Configure and claim ERC721 NFTs
Remarks
Manage claim phases and claim ERC721 NFTs that have been lazily minted.
Example