• Mints a specified amount of tokens.

    Returns

    A promise that resolves to the transaction hash.

    Throws

    If opts.validate and the token amount is not compatible with the token.

    Throws

    If opts.validate and the token is paused.

    Throws

    If opts.validate and the token is not mintable.

    Parameters

    • token: Token

      The token to mint.

    • sender: AccountAddress

      The account address of the sender.

    • amounts: TokenAmount | TokenAmount[]

      The amount(s) of tokens to mint.

    • signer: AccountSigner

      The signer responsible for signing the transaction.

    • Optional metadata: TokenUpdateMetadata
    • Optional [opts={: SupplyUpdateOptions = {}

      autoScale: true, validate: false }] - Options for supply update operations.

    Returns Promise<Type>

Generated using TypeDoc