Erc20SignatureMintable.mint() method
Mint tokens from a signature
Example
// see how to craft a payload to sign in the `generate()` documentation
const signedPayload = contract.erc20.signature.generate(payload);
// Use the signed payload to mint the tokens
const tx = contract.erc20.signature.mint(signedPayload);
Signature:
mint(signedPayload: SignedPayload20): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
signedPayload | SignedPayload20 | the previously generated payload and signature with Erc20SignatureMintable.generate() |
Returns:
Promise<TransactionResult>
Remarks
Mint a certain amount of tokens from a previously generated signature.