ERC1155SignatureMintable
Allows you to utilize signature-based minting of NFTs.
Generate
Generate a signature that a wallet address can use to mint the specified number of NFTs.
This is typically an admin operation, where the owner of the contract generates a signature that allows another wallet to mint tokens.
GenerateFromTokenId
Generate a signature that can be used to mint additional supply of an existing NFT in the contract.
This is the same as generate
but it allows you to specify the tokenId
of the NFT you want to mint additional supply for, rather than
providing the metadata
of a new NFT.
Mint
Mint tokens from a previously generated signature (see generate
).
Verify
Verify that a payload is correctly signed.
This allows you to provide a payload, and prove that it was valid and was generated by a wallet with permission to generate signatures.
If a payload is not valid, the mint
/mintBatch
functions will fail,
but you can use this function to verify that the payload is valid before attempting to mint the tokens
if you want to show a more user-friendly error message.