• Creates a combination of rules that will be evaluated using the equivalent of a boolean 'and' operator. I.e., for the expression returned by this function to be true, all of the provided rules must evaluate to true as well, the rules will be evaluated in the same order as they are provided and will short circuit if any rule evaluates to false.

    The object that is returned from this function can be used when creating an auth descriptor.

    Example:

     and(
    greaterThan(blockHeight(50)),
    lessThan(blockHeight(10)),
    )

    Type Parameters

    • T extends string

    Parameters

    Returns ComplexRule<T>

    a set of rules which will be evaluated together using the 'and' operator