Class

Utils

Utils

Miscellaneous utilities.

Methods

# static validateTimebounds(transaction, gracePeriodopt) → {boolean}

Verifies if the current date is within the transaction's timebounds

Parameters:
Name Type Attributes Default Description
transaction Transaction

The transaction whose timebounds will be validated.

gracePeriod number <optional>
0

An additional window of time that should be considered valid on either end of the transaction's time range.

View Source lib/utils.js, line 23

Returns true if the current time is within the transaction's [minTime, maxTime] range.

boolean