ERC721Claimable
Allow other wallets to claim NFTs that you have lazy-minted using (using ERC721LazyMintable).
Base Contracts Implementing This Feature
Unlocked Features
By implementing ERC721Claimable
, you unlock the following features in the SDK and dashboard:
SDK Usage | Description |
---|---|
Claim NFT | Claim (mint) a lazy-minted NFT to a wallet address. |
Implementing It Yourself
This section is meant for advanced users who want to write the functionality from scratch.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@thirdweb-dev/contracts/eip/ERC721A.sol";
import "@thirdweb-dev/contracts/extension/LazyMint.sol";
contract Contract is ERC721A, LazyMint {
constructor(
string memory _name,
string memory _symbol
)
ERC721A(
_name,
_symbol
)
{}
function _canLazyMint() internal view override returns (bool) {
// Your custom implementation here
}
function verifyClaim(address _claimer, uint256 _quantity) public view virtual {
// Your custom implementation here
}
function claim(address _receiver, uint256 _quantity) public payable virtual {
// Your custom implementation here
}
}