ERC20ClaimConditions
Enables wallets to claim (mint) tokens from the contract under specific conditions.
Claim a specified number of tokens to the connected wallet.
The amount of tokens to claim.
Must be a string
.
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 amount of tokens to claim.
Must be a string
.
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 a string
.
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.
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 a string
or number
.
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
.