PreconditionsTimeBoundsResponse

public struct PreconditionsTimeBoundsResponse : Decodable, Sendable

Represents time constraints for when a transaction can be included in a ledger.

Time bounds restrict transaction validity to a specific time window using Unix timestamps. Validators will reject transactions with time bounds that don’t include the current time.

Use cases:

  • Time-limited offers or escrow releases
  • Scheduled operations that should only execute after a specific time
  • Expiring transactions that become invalid after a deadline

Both bounds are optional:

  • If only minTime is set, transaction valid from that time onward
  • If only maxTime is set, transaction valid until that time
  • If both set, transaction valid only within the time window
  • If neither set (both nil or 0), transaction has no time restrictions

See also:

  • Minimum Unix timestamp (seconds since epoch). Transaction invalid before this time. Nil or “0” for no minimum.

    Declaration

    Swift

    public var minTime: String?
  • Maximum Unix timestamp (seconds since epoch). Transaction invalid after this time. Nil or “0” for no maximum.

    Declaration

    Swift

    public var maxTime: String?
  • Declaration

    Swift

    public init(from decoder: Decoder) throws