Skip to main content

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

ParameterTypeDescription
signedPayloadSignedPayload721WithQuantitySignaturethe previously generated payload and signature with Erc721WithQuantitySignatureMintable.generate()

Returns:

Promise<TransactionResultWithId>

Remarks

Mint a dynamic NFT with a previously generated signature.