ERC721ClaimConditions
Allows you to create a claim phase for an ERC721 token.
Claim a specified number of tokens to the connected wallet.
The number of tokens to claim.
Must be an int
.
The same as claim
, but allows specifying the recipient
address rather than using the connected wallet.
The wallet address to receive the claimed tokens.
Must be a string
.
The number of tokens to claim.
Must be an int
.
Check if tokens are currently available for claiming, optionally specifying if a specific wallet
address can claim.
The amount of tokens to claim.
This checks to see if the specified amount of tokens are available for claiming. i.e.:
- There is sufficient quantity available for claiming.
- This amount of tokens can be claimed in a single transaction.
Must be an int
.
The wallet address to check if it can claim tokens.
This considers all aspects of the active claim phase, including allowlists, previous claims, etc.
Must be a string
.
Returns a bool
indicating if the specified amount of tokens can be claimed or not.
Get the total number of tokens claimed from the drop so far.
Returns an int
representing the total number of tokens claimed from the drop so far.
Get the total number of tokens that are still available to be claimed from the drop.
Returns an int
representing the total number of tokens that are still available to be claimed from the drop.
Retrieve the currently active claim phase, if any.
If a claim condition is active, returns a ClaimConditions
struct containing the following properties:
Get an array of reasons why a specific wallet address is not eligible to claim tokens, if any.
The amount of tokens to check if the wallet address can claim.
Must be an int
.
The wallet address to check if it can claim tokens.
Must be a string
.
Returns an array of ClaimEligibility
strings, which may be empty.
If the user is eligible to claim tokens, the method will return an empty array.
Returns allowlist information and merkle proofs for a given wallet address.
The wallet address to get the merkle proofs for.
Must be a string
.