IClaimableERC1155
thirdweb
Methods
claim
Lets an address claim multiple lazy minted NFTs at once to a recipient. Contract creators should override this function to create custom logic for claiming, for e.g. price collection, allowlist, max quantity, etc.
The logic in the verifyClaim
function determines whether the caller is authorized to mint NFTs.
Parameters
_receiver
address
The recipient of the tokens to mint.
_tokenId
uint256
The tokenId of the lazy minted NFT to mint.
_quantity
uint256
The number of tokens to mint.
verifyClaim
Override this function to add logic for claim verification, based on conditions such as allowlist, price, max quantity etc.
Checks a request to claim NFTs against a custom condition.
Parameters
_claimer
address
Caller of the claim function.
_tokenId
uint256
The tokenId of the lazy minted NFT to mint.
_quantity
uint256
The number of NFTs being claimed.
Events
TokensClaimed
Emitted when tokens are claimed
Parameters
claimer indexed
address
undefined
receiver indexed
address
undefined
tokenId indexed
uint256
undefined
quantityClaimed
uint256
undefined
Last updated