Erc721WithQuantitySignatureMintable.mint() method
Mint a dynamically generated NFT
Example
// see how to craft a payload to sign in the `generate()` documentation
const signedPayload = contract.signature.generate(payload);
// now anyone can mint the NFT
const tx = contract.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.