ERC721 - Claim Conditions
You can utilize these features of the SDK on your contract if it implements Drop.
Configure claim conditions
Define the criteria of how NFTs can be claimed from your drop.
Each claim phase can define:
- When the claim phase will start
- How many NFTs to drop
- How much to charge per NFT
- What currency to use to sell the NFTs
- Which wallet addresses are allowed to mint (allowlist)
- How many NFTs can be claimed per wallet
- Metadata for the claim condition
- React
- Javascript
- Python
- Go
- Unity
const presaleStartTime = new Date();
const publicSaleStartTime = new Date(Date.now() + 60 * 60 * 24 * 1000);
const claimConditions = [
{
startTime: presaleStartTime, // start the presale now
maxQuantity: 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);
This snippet is for v3 of the SDK. Learn how to upgrade.
View in React SDK Documentationconst presaleStartTime = new Date();
const publicSaleStartTime = new Date(Date.now() + 60 * 60 * 24 * 1000);
const claimConditions = [
{
startTime: presaleStartTime, // start the presale now
maxQuantity: 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);
This snippet is for v3 of the SDK. Learn how to upgrade.
View in Javascript SDK DocumentationThis feature is missing a code snippet or might not be supported yet.
Check the Python SDK documentation for more information.
Reach out on Discord for further assistance!
View Python SDK DocumentationThis feature is missing a code snippet or might not be supported yet.
Check the Go SDK documentation for more information.
Reach out on Discord for further assistance!
View Go SDK Documentationawait contract.ERC721.claimConditions.GetActive();