Function dateToLocktime

  • Convert a JavaScript Date object to its equivalent transaction locktime representation. The date is rounded to the nearest second (the precision of locktime Dates).

    Note, a locktime values greater than or equal to 500000000 See Transaction.locktime for details.

    For the reverse, see locktimeToDate.

    Parameters

    • date: Date

      the Date to convert to a locktime number

    Returns number | dateOutOfRange

Generated using TypeDoc