Skip to main content

ERC1155 - Claim Conditions

ERC1155Claimable is an extension of ERC1155Claimable that enables claim conditions.

You can utilize these features of the SDK on your contract if it implements Drop for ERC 1155.

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
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.erc1155.claimConditions.set(tokenId, claimConditions);

This snippet is for v3 of the SDK. Learn how to upgrade.

View in React SDK Documentation