Skip to main content

Erc20SignatureMintable class

Enables generating ERC20 Tokens with rules and an associated signature, which can then be minted by anyone securely

Signature:

export declare class Erc20SignatureMintable implements DetectableFeature

Implements: DetectableFeature

Constructors

ConstructorModifiersDescription
(constructor)(contractWrapper, roles)Constructs a new instance of the Erc20SignatureMintable class

Properties

PropertyModifiersTypeDescription
featureName"ERC20SignatureMintable"

Methods

MethodModifiersDescription
generate(mintRequest)Generate a signature that can be used to mint a certain amount of tokens
generateBatch(payloadsToSign)Generate a batch of signatures that can be used to mint many token signatures.
mint(signedPayload)Mint tokens from a signature
mintBatch(signedPayloads)Mint any number of generated tokens signatures at once
verify(signedPayload)Verify that a payload is correctly signed