Erc721WithQuantitySignatureMintable.mint() method
Mint a dynamically generated NFT
Example
// see how to craft a payload to sign in the `generate()` documentation
const signedPayload = contract.erc721.signature.generate(payload);
// now anyone can mint the NFT
const tx = contract.erc721.signature.mint(signedPayload);
const receipt = tx.receipt; // the mint transaction receipt
const mintedId = tx.id; // the id of the NFT minted
Signature:
mint(signedPayload: SignedPayload721WithQuantitySignature): Promise<TransactionResultWithId>;
Parameters
Parameter | Type | Description |
---|---|---|
signedPayload | SignedPayload721WithQuantitySignature | the previously generated payload and signature with Erc721WithQuantitySignatureMintable.generate() |
Returns:
Promise<TransactionResultWithId>
Remarks
Mint a dynamic NFT with a previously generated signature.