Private
contractPrivate
metadataSet public mint conditions
Rest
...args: [claimConditionInputs: { Sets the public mint conditions that need to be fullfiled by users to claim NFTs.
const presaleStartTime = new Date();
const publicSaleStartTime = new Date(Date.now() + 60 * 60 * 24 * 1000);
// Optionally specify addresses that can claim
const snapshots = ['0x...', '0x...']
// Or alternatively, you can pass snapshots with the max number of NFTs each address can claim
// const snapshots = [{ address: '0x...', maxClaimable: 1 }, { address: '0x...', maxClaimable: 2 }]
const claimConditions = [
{
startTime: presaleStartTime, // start the presale now
maxClaimableSupply: 2, // limit how many mints for this presale
price: 0.01, // presale price
snapshot: snapshots, // limit minting to only certain addresses
},
{
startTime: publicSaleStartTime, // 24h after presale, start public sale
price: 0.08, // public sale price
}
]);
await dropContract.claimConditions.set(claimConditions);
Rest
...args: [claimConditionInputs: { Private
storageUpdate a single claim condition with new data.
Rest
...args: [index: number, claimConditionInput: { Rest
...args: [index: number, claimConditionInput: { Can Claim
Optional
addressToCheck: stringCheck if the drop can currently be claimed.
// Quantity of tokens to check claimability of
const quantity = 1;
const canClaim = await contract.canClaim(quantity);
Private
getOptional
conditionId: BigNumberishGet the currently active claim condition
Optional
options: ClaimConditionFetchOptionsthe claim condition metadata
Get all the claim conditions
Optional
options: ClaimConditionFetchOptionsthe claim conditions metadata
For any claim conditions that a particular wallet is violating, this function returns human readable information about the breaks in the condition that can be used to inform the user.
The desired quantity that would be claimed.
Optional
addressToCheck: stringThe wallet address, defaults to the connected wallet.
Construct a claim transaction without executing it. This is useful for estimating the gas cost of a claim transaction, overriding transaction options and having fine grained control over the transaction execution.
The address to claim to
The quantity to claim
Optional
options: ClaimOptionsOptions to override the claim transaction
Use contract.erc721.claim.prepare(...args)
instead
Returns allow list information and merkle proofs for the given address.
the claimer address
Optional
claimConditionId: BigNumberishoptional the claim condition id to get the proofs for
Private
getPrivate
getGenerated using TypeDoc
Manages claim conditions for NFT Drop contracts