Mint pattern requirements
You can choose this pattern to allow your users to mint items at claim
NFT requirements to use mint pattern
ERC721 Mintable ABI:
interface IERC721Mintable {
function safeMint(address to) external; // increments token ID for each minted token incrementally starting from 1
function grantRole(bytes32 role, address account) external;
function hasRole(bytes32 role, address account) public view returns (bool)
}ERC1155 Mintable ABI:
interface IERC1155Mintable {
function mintTo(address account, uint256 id, string calldata tokenURI, uint256 amount) external;
function grantRole(bytes32 role, address account) external;
function hasRole(bytes32 role, address account) public view returns (bool)
}Please also note
Last updated