TransactionPreconditionsResponse

public struct TransactionPreconditionsResponse : Decodable, Sendable

Represents transaction preconditions that must be met for a transaction to be valid.

Preconditions allow fine-grained control over when and how a transaction can be submitted and executed. They provide advanced features like time windows, ledger bounds, sequence constraints, and additional signing requirements.

All preconditions are optional. If not specified, the transaction has no constraints beyond the standard requirements (valid signatures, sufficient fee, correct sequence number).

Common use cases:

  • Time-locked transactions that can only execute within specific time windows
  • Ledger-locked transactions valid only for specific ledger ranges
  • Sequence-gated transactions requiring specific account age or sequence progression
  • Multi-party transactions requiring additional signers beyond the account’s configured signers

See also:

  • Stellar developer docs
  • PreconditionsTimeBoundsResponse for time constraints
  • PreconditionsLedgerBoundsResponse for ledger constraints