Skip to main content

ERC1155Claimable

Allow other wallets to claim NFTs that you have lazy-minted using (using ERC1155LazyMintable)

Base Contracts Implementing This Feature

Unlocked Features

By implementing ERC1155Claimable, you unlock the following features in the SDK and dashboard:

SDK UsageDescription
Claim NFTClaim (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/ERC1155.sol";
import "@thirdweb-dev/contracts/extension/LazyMint.sol";

contract Contract is ERC1155, LazyMint {
constructor(
string memory _name,
string memory _symbol
)
ERC1155(
_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
}
}