Skip to main content

Erc1155SignatureMintable.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: SignedPayload1155): Promise<TransactionResultWithId>;

Parameters

ParameterTypeDescription
signedPayloadSignedPayload1155the previously generated payload and signature with Erc1155SignatureMintable.generate()

Returns:

Promise<TransactionResultWithId>

Remarks

Mint a dynamic NFT with a previously generated signature.