• Checks if the transaction's base cost is greater than the provided value, which covers the transaction's cost.

    Parameters

    • baseCost: Numbers

      The base cost of the transaction.

    • value: Numbers | Promise<Numbers>

      The value covering the transaction's cost.

    Returns Promise<void>

    The base cost must be greater than the provided value.

    const baseCost = 100;
    const value = 99;
    try {
    await utils.checkBaseCost(baseCost, value);
    } catch (e) {
    // e.message = `The base cost of performing the priority operation is higher than the provided value parameter for the transaction: baseCost: ${baseCost}, provided value: ${value}`,
    }