Options
All
  • Public
  • Public/Protected
  • All
Menu

The deadline of the transaction. The deadline is given as the number of seconds elapsed since the creation of the nemesis block. If a transaction does not get included in a block before the deadline is reached, it is deleted.

Hierarchy

  • Deadline

Index

Constructors

Private constructor

  • new Deadline(adjustedValue: number): Deadline

Properties

adjustedValue

adjustedValue: number

Deadline value (without Nemesis epoch adjustment)

Methods

toLocalDateTime

  • toLocalDateTime(epochAdjustment: number): LocalDateTime
  • Returns deadline as local date time.

    Parameters

    • epochAdjustment: number

      the network's epoch adjustment (seconds). Defined in the network/properties.

    Returns LocalDateTime

toLocalDateTimeGivenTimeZone

  • toLocalDateTimeGivenTimeZone(epochAdjustment: number, zoneId: ZoneId): LocalDateTime
  • Returns deadline as local date time.

    Parameters

    • epochAdjustment: number

      the network's epoch adjustment (seconds). Defined in the network/properties.

    • zoneId: ZoneId

      the Zone Id.

    Returns LocalDateTime

Static create

  • create(epochAdjustment: number, deadline?: number, chronoUnit?: ChronoUnit): Deadline
  • Create deadline model. Default to 2 chrono hours in advance.

    Parameters

    • epochAdjustment: number

      the network's epoch adjustment (seconds). Defined in the network/properties. e.g. 1573430400;

    • deadline: number = ...

      the deadline unit value.

    • chronoUnit: ChronoUnit = ...

      the crhono unit. e.g ChronoUnit.HOURS

    Returns Deadline

Static createEmtpy

Static createFromAdjustedValue

  • createFromAdjustedValue(adjustedValue: number): Deadline

Static createFromDTO

  • createFromDTO(value: string | number[]): Deadline

Generated using TypeDoc