Skip to main content

Erc20SignatureMintable.mint() method

Mint tokens from a signature

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: SignedPayload20): Promise<TransactionResult>;

Parameters

ParameterTypeDescription
signedPayloadSignedPayload20the previously generated payload and signature with Erc20SignatureMintable.generate()

Returns:

Promise<TransactionResult>

Remarks

Mint a certain amount of tokens from a previously generated signature.