Skip to main content

IMintableERC1155

SignatureMint1155 is an ERC 1155 contract. It lets anyone mint NFTs by producing a mint request and a signature (produced by an account with MINTER_ROLE, signing the mint request).

Methods

mintTo

function mintTo(address to, uint256 tokenId, string uri, uint256 amount) external nonpayable

Lets an account with MINTER_ROLE mint an NFT.

Parameters

NameTypeDescription
toaddressThe address to mint the NFT to.
tokenIduint256The tokenId of the NFTs to mint
uristringThe URI to assign to the NFT.
amountuint256The number of copies of the NFT to mint.

Events

TokensMinted

event TokensMinted(address indexed mintedTo, uint256 indexed tokenIdMinted, string uri, uint256 quantityMinted)

Emitted when an account with MINTER_ROLE mints an NFT.

Parameters

NameTypeDescription
mintedTo indexedaddressundefined
tokenIdMinted indexeduint256undefined
uristringundefined
quantityMinteduint256undefined