Function validateMint

  • Validates a token mint.

    Returns

    A promise that resolves to true if the minting is valid.

    Throws

    If any token amount is not compatible with the token.

    Throws

    If the token is paused.

    Throws

    If the the token if not mintable.

    Parameters

    • token: Token

      The token to mint.

    • amounts: TokenAmount | TokenAmount[]

      The amounts of tokens to mint.

    Returns Promise<true>

Generated using TypeDoc