Skip to main content

DropErc1155ClaimConditions class

Manages claim conditions for Edition Drop contracts

Signature:

export declare class DropErc1155ClaimConditions<TContract extends PrebuiltEditionDrop | BaseClaimConditionERC1155>

Constructors

ConstructorModifiersDescription
(constructor)(contractWrapper, metadata, storage)Constructs a new instance of the DropErc1155ClaimConditions class

Methods

MethodModifiersDescription
canClaim(tokenId, quantity, addressToCheck)Can Claim
getActive(tokenId, options)Get the currently active claim condition
getAll(tokenId, options)Get all the claim conditions
getClaimArguments(tokenId, destinationAddress, quantity, claimVerification)
getClaimerProofs(tokenId, claimerAddress, claimConditionId)Returns allow list information and merkle proofs for the given address.
getClaimIneligibilityReasons(tokenId, quantity, addressToCheck)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.
getClaimTransaction(destinationAddress, tokenId, quantity, options)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.
isLegacyMultiPhaseDrop(contractWrapper)
isLegacySinglePhaseDrop(contractWrapper)
isNewMultiphaseDrop(contractWrapper)
isNewSinglePhaseDrop(contractWrapper)
prepareClaim(tokenId, quantity, checkERC20Allowance, address)Returns proofs and the overrides required for the transaction.
set(tokenId, claimConditionInputs, resetClaimEligibilityForAll)Set claim conditions on a single NFT
setBatch(claimConditionsForToken, resetClaimEligibilityForAll)Set claim conditions on multiple NFTs at once
update(tokenId, index, claimConditionInput)Update a single claim condition with new data.